Set the cached coordinates on SubTile NBT read to null if TAG_POOL_Y is -1.

This commit is contained in:
Lizbeth Rika committed 2015-06-19 21:42:19 +01:00
1 parent 093c6a7d08
commit f6ad7a79e2
2 files changed
+2 -4

No files matched your search

@@ -177,14 +177,12 @@ public class SubTileGenerating extends SubTileEntity {
@Override
public void readFromPacketNBT(NBTTagCompound cmp) {
mana = cmp.getInteger(TAG_MANA);
if(!cmp.hasKey(TAG_TICKS_EXISTED))
ticksExisted = cmp.getInteger(TAG_TICKS_EXISTED);
int x = cmp.getInteger(TAG_COLLECTOR_X);
int y = cmp.getInteger(TAG_COLLECTOR_Y);
int z = cmp.getInteger(TAG_COLLECTOR_Z);
cachedCollectorCoordinates = new ChunkCoordinates(x, y, z);
cachedCollectorCoordinates = y < 0 ? null : new ChunkCoordinates(x, y, z);
}
@Override