Skip to content

Commit

Permalink
Give correct chunk coordinates in /profile e
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jun 30, 2013
1 parent 068bac0 commit 52d8dbd
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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();
Expand Down

0 comments on commit 52d8dbd

Please sign in to comment.