Fix server always paused (#8330)

This commit is contained in:
Gureumi
2023-02-22 13:02:04 -05:00
committed by GitHub
parent 39e88ae614
commit 8eb3c16c50
@@ -193,7 +193,7 @@ public class ServerControl implements ApplicationListener{
play(true, () -> { play(true, () -> {
world.loadMap(map, map.applyRules(lastMode)); world.loadMap(map, map.applyRules(lastMode));
if(Config.autoPause.bool() && Groups.player.isEmpty()){ if(Config.autoPause.bool() && autoPaused){
Core.app.post(() -> state.set(State.paused)); Core.app.post(() -> state.set(State.paused));
} }
}); });