Fix Living Armor check NPE. Again. (#584)
I reversed some logic. don't code when tired, kids.
This commit is contained in:
parent
4bb7faabb1
commit
2220cc1819
2 changed files with 2 additions and 1 deletions
|
@ -244,7 +244,7 @@ public class LivingArmour implements ILivingArmour
|
|||
public static boolean hasFullSet(EntityPlayer player) {
|
||||
for (int slot = 0; slot < player.inventory.armorInventory.length; slot++) {
|
||||
ItemStack slotStack = player.inventory.armorItemInSlot(slot);
|
||||
if (slotStack != null && !(slotStack.getItem() instanceof ItemLivingArmour))
|
||||
if (slotStack == null || !(slotStack.getItem() instanceof ItemLivingArmour))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue