From 52d8dbd5c67466e4ba9dba04257ed5c362a80e5f Mon Sep 17 00:00:00 2001 From: Ross Allan Date: Sun, 30 Jun 2013 12:18:09 +0100 Subject: [PATCH] Give correct chunk coordinates in /profile e Signed-off-by: Ross Allan --- .../tickthreading/minecraft/profiling/EntityTickProfiler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/nallar/tickthreading/minecraft/profiling/EntityTickProfiler.java b/src/common/nallar/tickthreading/minecraft/profiling/EntityTickProfiler.java index 0adc6dc1..48a132b0 100644 --- a/src/common/nallar/tickthreading/minecraft/profiling/EntityTickProfiler.java +++ b/src/common/nallar/tickthreading/minecraft/profiling/EntityTickProfiler.java @@ -192,8 +192,8 @@ public ComparableLongHolder get(Object key_) { x = ((Entity) o).chunkCoordX; z = ((Entity) o).chunkCoordZ; } else if (o instanceof TileEntity) { - x = ((TileEntity) o).xCoord >> 4; - z = ((TileEntity) o).zCoord >> 4; + x = (((TileEntity) o).xCoord - 15) >> 4; + z = (((TileEntity) o).zCoord - 15) >> 4; } if (x != Integer.MIN_VALUE) { chunkTimeMap.get(new ChunkCoords(x, z)).value += singleTimeEntry.getValue();