Fix Living Armor check NPE. Again. (#584)

I reversed some logic. don't code when tired, kids.
This commit is contained in:
Nick 2016-01-30 12:17:52 -08:00
parent 4bb7faabb1
commit 2220cc1819
2 changed files with 2 additions and 1 deletions

View file

@ -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;
}