mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-06 08:57:45 +07:00
Fix server auto pause when gameover (#8220)
* Fix server auto pause when gameover * Update ServerControl.java * Update ServerControl.java
This commit is contained in:
parent
53f410fee0
commit
0fd26e68d4
@ -191,7 +191,12 @@ public class ServerControl implements ApplicationListener{
|
||||
|
||||
info("Selected next map to be @.", Strings.stripColors(map.name()));
|
||||
|
||||
play(true, () -> world.loadMap(map, map.applyRules(lastMode)));
|
||||
play(true, () -> {
|
||||
world.loadMap(map, map.applyRules(lastMode));
|
||||
if(Config.autoPause.bool() && Groups.player.isEmpty()){
|
||||
Core.app.post(() -> state.set(State.paused));
|
||||
}
|
||||
});
|
||||
}else{
|
||||
netServer.kickAll(KickReason.gameover);
|
||||
state.set(State.menu);
|
||||
|
Loading…
Reference in New Issue
Block a user