From d12806f51b0df3dc8e35ae15f2b71352460867b7 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 21 May 2022 15:17:41 +0200 Subject: [PATCH] Hotfix HotbarKit Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/fight/HotbarKit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java b/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java index a3ec49d..ff0162d 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java @@ -55,7 +55,7 @@ public class HotbarKit extends Kit implements Listener { } public HotbarKit(HotbarKit kit) { - this(kit.getName(), kit.getInventory().clone(), kit.getArmor().clone(), kit.getEffects(), kit.nameTags.clone(), kit.onClicks.clone()); + this(kit.getName(), kit.getInventory().clone(), kit.getArmor() != null ? kit.getArmor().clone() : null, kit.getEffects(), kit.nameTags.clone(), kit.onClicks.clone()); } public void setItem(int id, String nameTag, ItemStack stack, Consumer onClick) {