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) {