Experimental multiplayer pausing variable

This commit is contained in:
Anuken
2022-10-31 20:19:39 -04:00
parent 4e8e65d1dd
commit 6aeeb23d7c
5 changed files with 13 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ public class BaseDialog extends Dialog{
.growX().height(3f).pad(4f);
hidden(() -> {
if(shouldPause && state.isGame()){
if(shouldPause && state.isGame() && !net.active()){
if(!wasPaused || net.active()){
state.set(State.playing);
}
@@ -33,7 +33,7 @@ public class BaseDialog extends Dialog{
});
shown(() -> {
if(shouldPause && state.isGame()){
if(shouldPause && state.isGame() && !net.active()){
wasPaused = state.is(State.paused);
state.set(State.paused);
}