mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Add some null checks to armorset verification. Closes #2379
This commit is contained in:
1 parent
4b6bf5bf38
commit
f9d0ab39af
1 file changed
+3
+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;
|
||||
|
||||
Reference in new issue
Block a user