From 4d05ce3e04d6793c959ab52ce103a49e35846b86 Mon Sep 17 00:00:00 2001 From: Wolfieheart Date: Tue, 31 Dec 2024 15:19:07 +0100 Subject: [PATCH] [CORE] Fix Cannot invoke "org.bukkit.inventory.ItemStack.getType()" because "this.xyzabc" is null errors Signed-off-by: Wolfieheart --- .../armorstandeditor/menu/EquipmentMenu.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/io/github/rypofalem/armorstandeditor/menu/EquipmentMenu.java b/src/main/java/io/github/rypofalem/armorstandeditor/menu/EquipmentMenu.java index 14926276..a760e318 100644 --- a/src/main/java/io/github/rypofalem/armorstandeditor/menu/EquipmentMenu.java +++ b/src/main/java/io/github/rypofalem/armorstandeditor/menu/EquipmentMenu.java @@ -111,13 +111,13 @@ public void equipArmorstand() { leftHand = menuInv.getItem(14); debug.log("[ArmorStandEditor-Debug] Equipping the ArmorStand with the following items: "); - debug.log("[ArmorStandEditor-Debug] Helmet: " + helmet.getType()); - debug.log("[ArmorStandEditor-Debug] Chest: " + chest.getType()); - debug.log("[ArmorStandEditor-Debug] Chest: " + chest.getType()); - debug.log("[ArmorStandEditor-Debug] Pants: " + pants.getType()); - debug.log("[ArmorStandEditor-Debug] Boots: " + feetsies.getType()); - debug.log("[ArmorStandEditor-Debug] R-Hand: " + rightHand.getType()); - debug.log("[ArmorStandEditor-Debug] L-Hand: " + leftHand.getType()); + debug.log("[ArmorStandEditor-Debug] Helmet: " + helmet); + debug.log("[ArmorStandEditor-Debug] Chest: " + chest); + debug.log("[ArmorStandEditor-Debug] Chest: " + chest); + debug.log("[ArmorStandEditor-Debug] Pants: " + pants); + debug.log("[ArmorStandEditor-Debug] Boots: " + feetsies); + debug.log("[ArmorStandEditor-Debug] R-Hand: " + rightHand); + debug.log("[ArmorStandEditor-Debug] L-Hand: " + leftHand); armorstand.getEquipment().setHelmet(helmet); armorstand.getEquipment().setChestplate(chest);