Skip to content

Commit

Permalink
Satellites work even if no audio was loaded (bug fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
FoundationGames committed Aug 7, 2023
1 parent 8ee1672 commit 81b03c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(() -> {
Expand Down

0 comments on commit 81b03c3

Please sign in to comment.