From e4676d5ebacfeaf895d25fde127ff5376da73743 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 1 Jan 2026 15:08:37 +0100 Subject: [PATCH] Test hotpatch kit --- .../src/de/steamwar/fightsystem/fight/Kit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/fight/Kit.java b/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/fight/Kit.java index 0bba6ae5..f5489be1 100644 --- a/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/fight/Kit.java +++ b/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/fight/Kit.java @@ -117,7 +117,7 @@ public class Kit { if(kit.isList("Armor")) armor = Objects.requireNonNull(kit.getList("Armor")).toArray(new ItemStack[0]); else - armor = null; + armor = new ItemStack[]{ null, null, null, null}; leaderAllowed = kit.getBoolean("LeaderAllowed"); memberAllowed = kit.getBoolean("MemberAllowed"); if(kit.isList("Effects")) @@ -261,7 +261,7 @@ public class Kit { player.getInventory().setContents(inventory); if(armor != null) player.getInventory().setArmorContents(armor); - player.updateInventory(); + player.updateInventory(); //TODO issue in 1.21.6? if(effects != null) player.addPotionEffects(effects); }