mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-10-25 20:32:32 +00:00
fix NPE in armorextended
This commit is contained in:
1 parent
ad67a78845
commit
9d5fc07c04
1 file changed
+3
@@ -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<EntityItem> drops)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user