From 680994aed9df8843928a3142dc39b8f30fccdc3b Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 10 Nov 2020 09:59:19 +0100 Subject: [PATCH] Fix small fightstate bug Signed-off-by: Lixfel --- FightSystem_Main/src/de/steamwar/fightsystem/commands/GUI.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/commands/GUI.java b/FightSystem_Main/src/de/steamwar/fightsystem/commands/GUI.java index 7d598ba..fe567c3 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/commands/GUI.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/commands/GUI.java @@ -153,7 +153,8 @@ public class GUI { FightTeam fightTeam = Fight.getPlayerTeam(p); if(fightTeam == null) return; - fightTeam.setSchematic(s); + if(FightSystem.getFightState() != FightState.POST_SCHEM_SETUP) + fightTeam.setSchematic(s); p.closeInventory(); }); inv.setCallback(-999, (ClickType click) -> p.closeInventory());