Let's not write ourself and all our children to our own NBT recursively...
This commit is contained in:
parent
798bad5583
commit
9b51b28dbb
|
@ -48,7 +48,7 @@ public class TileInventory extends TileBase implements IInventory
|
||||||
@Override
|
@Override
|
||||||
public void deserialize(NBTTagCompound tagCompound)
|
public void deserialize(NBTTagCompound tagCompound)
|
||||||
{
|
{
|
||||||
super.readFromNBT(tagCompound);
|
super.deserialize(tagCompound);
|
||||||
NBTTagList tags = tagCompound.getTagList("Items", 10);
|
NBTTagList tags = tagCompound.getTagList("Items", 10);
|
||||||
inventory = new ItemStack[getSizeInventory()];
|
inventory = new ItemStack[getSizeInventory()];
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ public class TileInventory extends TileBase implements IInventory
|
||||||
@Override
|
@Override
|
||||||
public NBTTagCompound serialize(NBTTagCompound tagCompound)
|
public NBTTagCompound serialize(NBTTagCompound tagCompound)
|
||||||
{
|
{
|
||||||
super.writeToNBT(tagCompound);
|
super.serialize(tagCompound);
|
||||||
NBTTagList tags = new NBTTagList();
|
NBTTagList tags = new NBTTagList();
|
||||||
|
|
||||||
for (int i = 0; i < inventory.length; i++)
|
for (int i = 0; i < inventory.length; i++)
|
||||||
|
|
Loading…
Reference in a new issue