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
|
@ -5,6 +5,7 @@ Version 2.0.0-12
|
|||
- Tweaked the Incense altar and added its recipe.
|
||||
- Fixed Blood Light sigil not providing the right coloured particles
|
||||
- Added the ability for the divination sigil to look up information about the incense altar.
|
||||
- Fix another NPE when checking of a player has a full set of Living Armor
|
||||
|
||||
------------------------------------------------------
|
||||
Version 2.0.0-11
|
||||
|
|
|
@ -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…
Reference in a new issue