diff options
-rw-r--r-- | mcmap/chunk.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |