Null check. Fixes #2840 #2842

This commit is contained in:
t00thpick1 2016-03-20 12:47:27 -05:00
parent e091a8eb55
commit d1cf08c6ba

View File

@ -25,7 +25,7 @@ public class Axes {
protected static boolean hasArmor(LivingEntity target) {
for (ItemStack itemStack : target.getEquipment().getArmorContents()) {
if (ItemUtils.isArmor(itemStack)) {
if (itemStack != null && ItemUtils.isArmor(itemStack)) {
return true;
}
}