mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Set the cached coordinates on SubTile NBT read to null if TAG_POOL_Y is -1.
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user