diff --git a/src/main/java/com/burnedkirby/TurnBasedMinecraft/client/BattleGui.java b/src/main/java/com/burnedkirby/TurnBasedMinecraft/client/BattleGui.java index 074b60d..4e0a1a3 100644 --- a/src/main/java/com/burnedkirby/TurnBasedMinecraft/client/BattleGui.java +++ b/src/main/java/com/burnedkirby/TurnBasedMinecraft/client/BattleGui.java @@ -229,6 +229,7 @@ public class BattleGui extends Screen { if (TurnBasedMinecraftMod.proxy.getLocalBattle() == null) { // drawHoveringText("Waiting...", width / 2 - 50, height / 2); drawString(guiGraphics, "Waiting...", width / 2 - 50, height / 2, 0xFFFFFFFF); + super.render(guiGraphics, mouseX, mouseY, partialTicks); return; } if (TurnBasedMinecraftMod.proxy.getLocalBattle().getState() == Battle.State.DECISION diff --git a/src/main/java/com/burnedkirby/TurnBasedMinecraft/common/BattleUpdater.java b/src/main/java/com/burnedkirby/TurnBasedMinecraft/common/BattleUpdater.java index b4bd274..1773223 100644 --- a/src/main/java/com/burnedkirby/TurnBasedMinecraft/common/BattleUpdater.java +++ b/src/main/java/com/burnedkirby/TurnBasedMinecraft/common/BattleUpdater.java @@ -26,10 +26,10 @@ public class BattleUpdater @SubscribeEvent public void update(TickEvent.ServerTickEvent tickEvent) { - if(tickEvent.phase != TickEvent.Phase.START && isRunning.get() && ++tick > tickLimit) { + if(tickEvent.phase != TickEvent.Phase.START && isRunning.get() && ++tick > tickLimit && tickEvent.haveTime()) { tick = 0; manager.battleMap.entrySet().removeIf(entry -> entry.getValue().update()); manager.updateRecentlyLeftBattle(); } } -} \ No newline at end of file +}