Skip to content

Commit

Permalink
Execute SoundManager#play on the main client thread. Should fix #19.
Browse files Browse the repository at this point in the history
  • Loading branch information
Haven-King committed Jun 26, 2021
1 parent acb58b0 commit 5cc9086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ yarn_mappings = 1.16.5+build.9
loader_version = 0.11.3

# Mod Properties
mod_version = 1.4.2+mc1.16.5
mod_version = 1.4.3+mc1.16.5
maven_group = dev.hephaestus
archives_base_name = atmosfera

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static void endTick() {

Atmosfera.debug("[Atmosfera] isDone: " + entry.getValue().getId());
} else if (!soundManager.isPlaying(entry.getValue())) {
soundManager.play(entry.getValue());
MinecraftClient.getInstance().submit(() -> soundManager.play(entry.getValue()));

Atmosfera.debug("[Atmosfera] play: " + entry.getValue().getId());
}
Expand Down

0 comments on commit 5cc9086

Please sign in to comment.