1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-11 08:15:35 +03:00

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");
autoPaused = false;
state.set(state.isPaused() ? State.playing : State.paused);
state.set(pause ? State.paused : State.playing);
info(pause ? "Game paused." : "Game unpaused.");
});