Fix server always paused (#8330)

This commit is contained in:
Gureumi 2023-02-23 03:02:04 +09:00 committed by GitHub
parent 39e88ae614
commit 8eb3c16c50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,7 +193,7 @@ public class ServerControl implements ApplicationListener{
play(true, () -> {
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));
}
});