break for loop if all nodes for x/z coord found

This commit is contained in:
NatureFreshMilk 2019-07-31 14:44:13 +02:00
parent 6ed86683ad
commit ccde7f0ab1

View File

@ -126,7 +126,7 @@ func (r *MapBlockRenderer) Render(pos1, pos2 *coords.MapBlockCoords) (*image.NRG
for z := 0; z < 16; z++ {
for y := 15; y >= 0; y-- {
if xzOccupationMap[x][z] {
continue
break
}
nodeName := mb.GetNodeName(x, y, z)