mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-10-29 16:23:44 +01:00
@@ -25,7 +25,7 @@ public class Axes {
|
|||||||
|
|
||||||
protected static boolean hasArmor(LivingEntity target) {
|
protected static boolean hasArmor(LivingEntity target) {
|
||||||
for (ItemStack itemStack : target.getEquipment().getArmorContents()) {
|
for (ItemStack itemStack : target.getEquipment().getArmorContents()) {
|
||||||
if (ItemUtils.isArmor(itemStack)) {
|
if (itemStack != null && ItemUtils.isArmor(itemStack)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user