This commit is contained in:
Anuken
2020-03-08 21:53:19 -04:00
parent 863c7ae2bc
commit 0ff3c1ee78
26 changed files with 59 additions and 54 deletions

View File

@@ -673,7 +673,7 @@ public class NetServer implements ApplicationListener{
@Override
public void update(){
if(!headless && !closing && net.server() && state.is(State.menu)){
if(!headless && !closing && net.server() && state.isMenu()){
closing = true;
ui.loadfrag.show("$server.closing");
Time.runTask(5f, () -> {
@@ -683,7 +683,7 @@ public class NetServer implements ApplicationListener{
});
}
if(!state.is(State.menu) && net.server()){
if(state.isGame() && net.server()){
sync();
}
}