Fix pause toggling (#9696)

This commit is contained in:
FelixDesyatirikov 2024-03-31 23:16:58 +03:00 committed by GitHub
parent 45bdceb7fb
commit 40cd2fd276
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -527,7 +527,7 @@ public class ServerControl implements ApplicationListener{
} }
boolean pause = arg[0].equals("on"); boolean pause = arg[0].equals("on");
autoPaused = false; autoPaused = false;
state.set(state.isPaused() ? State.playing : State.paused); state.set(pause ? State.paused : State.playing);
info(pause ? "Game paused." : "Game unpaused."); info(pause ? "Game paused." : "Game unpaused.");
}); });