Fixed incorrect game-overs on zone attack maps

This commit is contained in:
Anuken
2019-06-29 11:02:27 -04:00
parent 04dfda0c55
commit 576f0be4ab
3 changed files with 16 additions and 6 deletions

View File

@@ -359,10 +359,10 @@ public class HudFragment extends Fragment{
button.getStyle().disabledFontColor = Color.WHITE;
button.margin(16f);
button.visible(() ->
world.isZone() &&
world.getZone().metCondition() &&
!Net.client() &&
state.wave % world.getZone().launchPeriod == 0 && !world.spawner.isSpawning());
world.isZone() &&
world.getZone().metCondition() &&
!Net.client() &&
state.wave % world.getZone().launchPeriod == 0 && !world.spawner.isSpawning());
button.update(() -> {
if(world.getZone() == null){