Don't show 'waiting for players' when not paused

This commit is contained in:
Anuken
2022-11-01 01:49:20 -04:00
parent 240c234e88
commit 68bde6f900

View File

@@ -99,7 +99,7 @@ public class HudFragment{
//"waiting for players"
parent.fill(t -> {
t.name = "waiting";
t.visible(() -> netServer.isWaitingForPlayers()).touchable = Touchable.disabled;
t.visible(() -> netServer.isWaitingForPlayers() && state.isPaused() && shown).touchable = Touchable.disabled;
t.table(Styles.black6, top -> top.add("@waiting.players").style(Styles.outlineLabel).pad(18f));
});