break
This commit is contained in:
parent
2c2e20404e
commit
50348775c3
@ -7,7 +7,6 @@ import (
|
||||
"image"
|
||||
"image/draw"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type MapBlockRenderer struct {
|
||||
@ -72,7 +71,6 @@ func (r *MapBlockRenderer) Render(pos1, pos2 coords.MapBlockCoords) (*image.NRGB
|
||||
|
||||
nodeName := mb.GetNodeName(x,y,z)
|
||||
|
||||
fmt.Println(x,y,z, nodeName)//XXX
|
||||
if nodeName == "" {
|
||||
continue
|
||||
}
|
||||
@ -93,17 +91,11 @@ func (r *MapBlockRenderer) Render(pos1, pos2 coords.MapBlockCoords) (*image.NRGB
|
||||
draw.Draw(img, rect, &image.Uniform{c}, image.ZP, draw.Src)
|
||||
|
||||
if foundBlocks == EXPECTED_BLOCKS_PER_FLAT_MAPBLOCK {
|
||||
break
|
||||
return img, nil
|
||||
}
|
||||
}
|
||||
if foundBlocks == EXPECTED_BLOCKS_PER_FLAT_MAPBLOCK {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
if foundBlocks == EXPECTED_BLOCKS_PER_FLAT_MAPBLOCK {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
return img, nil
|
||||
|
Loading…
Reference in New Issue
Block a user