Remove nested app.post (#1667)

This commit is contained in:
Patrick 'Quezler' Mounier 2020-03-04 17:58:16 +01:00 committed by GitHub
parent c96427c722
commit 3b2b7be72a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,7 @@ public class Control implements ApplicationListener, Loadable{
player.isAdmin = true;
}catch(IOException e){
ui.showException("$server.error", e);
Core.app.post(() -> state.set(State.menu));
state.set(State.menu);
}
}
}));