diff options
-rw-r--r-- | mcmap/chunk.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcmap/chunk.go b/mcmap/chunk.go index 6f78fdc..6f6c4db 100644 --- a/mcmap/chunk.go +++ b/mcmap/chunk.go @@ -118,7 +118,7 @@ func (c *Chunk) RecalcHeightMap() { i := 0 for z := 0; z < ChunkSizeXZ; z++ { for x := 0; x < ChunkSizeXZ; x++ { - for y := ChunkSizeY; y >= 0; y-- { + for y := ChunkSizeY-1; y >= 0; y-- { blkid := c.blocks[calcBlockOffset(x, y, z)].ID if (blkid != BlkAir) && (blkid != BlkGlass) && (blkid != BlkGlassPane) { c.heightMap[i] = int32(y) |