Fix wrong assumption made with the legacy tags

This commit is contained in:
raoulvdberge
2017-02-06 19:26:25 +01:00
parent ef66df9556
commit 74b4830f83

View File

@@ -38,6 +38,8 @@ public abstract class TileNode<N extends NetworkNode> extends TileBase implement
getNode().markDirty();
legacyTagToRead = null;
markDirty();
}
getNode().update();
@@ -80,8 +82,10 @@ public abstract class TileNode<N extends NetworkNode> extends TileBase implement
public void read(NBTTagCompound tag) {
super.read(tag);
// When we have more than the direction stored, this is a legacy tag
if (tag.getSize() > 1) {
// If we have more than this stored:
// x, y, z, id, Direction
// Then this is a legacy tag!
if (tag.getSize() > 5) {
legacyTagToRead = tag;
}
}