Fix terminal potentially trying to play sound from network thread.
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user