From 9d5fc07c04ccc44ec22b8f951fe665093cbf15ac Mon Sep 17 00:00:00 2001 From: Zach Date: Fri, 7 Mar 2014 16:09:24 -0500 Subject: [PATCH] fix NPE in armorextended --- src/main/java/tconstruct/util/player/ArmorExtended.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/tconstruct/util/player/ArmorExtended.java b/src/main/java/tconstruct/util/player/ArmorExtended.java index 110ebdd5..113ee215 100644 --- a/src/main/java/tconstruct/util/player/ArmorExtended.java +++ b/src/main/java/tconstruct/util/player/ArmorExtended.java @@ -246,6 +246,8 @@ public class ArmorExtended implements IInventory public void readFromNBT (NBTTagCompound tagCompound) { + if(tagCompound != null) + { NBTTagList tagList = tagCompound.getTagList("Inventory", 10); for (int i = 0; i < tagList.tagCount(); ++i) { @@ -259,6 +261,7 @@ public class ArmorExtended implements IInventory } } } + } public void dropItems(ArrayList drops) {