diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/utils/PersonalKitCreator.java b/FightSystem_Main/src/de/steamwar/fightsystem/utils/PersonalKitCreator.java index a4fe1ec..ba2fc60 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/utils/PersonalKitCreator.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/utils/PersonalKitCreator.java @@ -58,8 +58,8 @@ public class PersonalKitCreator implements Listener { } public static void closeAll(){ - for(PersonalKitCreator creator : openKitCreators.values()){ - creator.player.closeInventory(); + while(!openKitCreators.isEmpty()){ + openKitCreators.values().iterator().next().player.closeInventory(); } }