From 50348775c38faa9c218b63bd5d9808fbae4fe6d6 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Fri, 11 Jan 2019 13:53:41 +0100 Subject: [PATCH] break --- mapblockrenderer/renderer.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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