diff --git a/changelog.txt b/changelog.txt index 53b3ad19..2547126d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/src/main/java/WayofTime/bloodmagic/livingArmour/LivingArmour.java b/src/main/java/WayofTime/bloodmagic/livingArmour/LivingArmour.java index c8ca8965..e993c9f9 100644 --- a/src/main/java/WayofTime/bloodmagic/livingArmour/LivingArmour.java +++ b/src/main/java/WayofTime/bloodmagic/livingArmour/LivingArmour.java @@ -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; }