Fix terminal potentially trying to play sound from network thread.

This commit is contained in:
Florian Nücke
2021-01-10 12:32:54 +01:00
parent 2b758d929a
commit 219b59e2b7

View File

@@ -182,7 +182,7 @@ public final class Terminal {
break;
}
case 7: {
Minecraft.getInstance().getSoundHandler().play(SimpleSound.master(NoteBlockInstrument.PLING.getSound(), 1));
Minecraft.getInstance().execute(() -> Minecraft.getInstance().getSoundHandler().play(SimpleSound.master(NoteBlockInstrument.PLING.getSound(), 1)));
break;
}
case 27: {