Add some null checks to armorset verification. Closes #2379

This commit is contained in:
Vasco Lavos committed 2017-09-30 13:03:01 +01:00
1 parent 4b6bf5bf38
commit f9d0ab39af
1 file changed
+3
@@ -202,6 +202,9 @@ public class ItemManasteelArmor extends ItemArmor implements ISpecialArmor, IMan
}
public boolean hasArmorSetItem(EntityPlayer player, int i) {
if(player == null || player.inventory == null || player.inventory.armorInventory == null)
return false;
ItemStack stack = player.inventory.armorInventory.get(3 - i);
if(stack.isEmpty())
return false;