diff --git a/gradle.properties b/gradle.properties index f48fc56..6c4cf6e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,7 +7,7 @@ loader_version=0.14.21 #Fabric api fabric_version=0.84.0+1.20.1 -mod_version = 1.0.0-beta.8 +mod_version = 1.0.0-beta.9 maven_group = io.github.foundationgames archives_base_name = phonos diff --git a/src/main/java/io/github/foundationgames/phonos/sound/custom/ServerCustomAudio.java b/src/main/java/io/github/foundationgames/phonos/sound/custom/ServerCustomAudio.java index 84b7f1a..6d2233b 100644 --- a/src/main/java/io/github/foundationgames/phonos/sound/custom/ServerCustomAudio.java +++ b/src/main/java/io/github/foundationgames/phonos/sound/custom/ServerCustomAudio.java @@ -202,6 +202,12 @@ public static void load(Path folder) throws IOException { final int foundDataCount = files.size(); var loadedDataCount = new AtomicInteger(0); + if (foundDataCount == 0) { + LOADED = true; + + return; + } + for (final var hexStr : files) { final var path = folder.resolve(hexStr + FILE_EXT); FILESYS_POOL.submit(() -> {