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 Jul 16, 2021
1 parent 2285f70 commit 28e00f2
Showing 1 changed file with 1 addition and 1 deletion.
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 28e00f2

Please sign in to comment.