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