Skip to content

Commit

Permalink
[CORE] Fix Cannot invoke "org.bukkit.inventory.ItemStack.getType()" b…
Browse files Browse the repository at this point in the history
…ecause "this.xyzabc" is null errors

Signed-off-by: Wolfieheart <[email protected]>
  • Loading branch information
Wolfieheart committed Dec 31, 2024
1 parent f9f9ed2 commit 4d05ce3
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4d05ce3

Please sign in to comment.