diff --git a/common/coords.go b/common/coords.go index 2657d8e..9b9bb72 100644 --- a/common/coords.go +++ b/common/coords.go @@ -145,10 +145,7 @@ func InterleavedToCoord(pos int64) Coord { } pos >>= 1 } - x += minValue - y += minValue - z += minValue - return Coord{X: x, Y: y, Z: z} + return Coord{X: x + minValue, Y: y + minValue, Z: z + minValue} } func CoordToPlain(c Coord) int64 {