From 4c4df60b81861fe768bfa45a935f58c01c757a64 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Sun, 20 Mar 2016 17:52:21 -0500 Subject: [PATCH] Was in a second location as well. --- src/main/java/com/gmail/nossr50/skills/axes/AxesManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/axes/AxesManager.java b/src/main/java/com/gmail/nossr50/skills/axes/AxesManager.java index 4733253e0..2f00e6887 100644 --- a/src/main/java/com/gmail/nossr50/skills/axes/AxesManager.java +++ b/src/main/java/com/gmail/nossr50/skills/axes/AxesManager.java @@ -103,7 +103,7 @@ public class AxesManager extends SkillManager { int durabilityDamage = 1 + (getSkillLevel() / Axes.impactIncreaseLevel); for (ItemStack armor : target.getEquipment().getArmorContents()) { - if (ItemUtils.isArmor(armor)) { + if (armor != null && ItemUtils.isArmor(armor)) { if (SkillUtils.activationSuccessful(SecondaryAbility.ARMOR_IMPACT, getPlayer(), Axes.impactChance, activationChance)) { SkillUtils.handleDurabilityChange(armor, durabilityDamage, Axes.impactMaxDurabilityModifier); }