mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-06 08:57:45 +07:00
Fix pause toggling (#9696)
This commit is contained in:
parent
45bdceb7fb
commit
40cd2fd276
@ -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.");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user