From 2d7bcaa82a5cd2c228f9ff65f9168cff708c5afd Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Fri, 16 Aug 2013 12:40:59 +0200 Subject: Fixed BlockToChunk... Again... Totally not embarassing... --- mcmap/chunk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mcmap') diff --git a/mcmap/chunk.go b/mcmap/chunk.go index 45ab75c..6f78fdc 100644 --- a/mcmap/chunk.go +++ b/mcmap/chunk.go @@ -25,8 +25,8 @@ func offsetToPos(off int) (x, y, z int) { func BlockToChunk(bx, bz int) (cx, cz, rbx, rbz int) { cx = bx >> 4 cz = bz >> 4 - rbx = ((cx % ChunkSizeXZ) + ChunkSizeXZ) % ChunkSizeXZ - rbz = ((cz % ChunkSizeXZ) + ChunkSizeXZ) % ChunkSizeXZ + rbx = ((bx % ChunkSizeXZ) + ChunkSizeXZ) % ChunkSizeXZ + rbz = ((bz % ChunkSizeXZ) + ChunkSizeXZ) % ChunkSizeXZ return } -- cgit v1.2.3-70-g09d2