diff --git a/mapblockrenderer/renderer.go b/mapblockrenderer/renderer.go index 2863f8a..59861ba 100644 --- a/mapblockrenderer/renderer.go +++ b/mapblockrenderer/renderer.go @@ -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