From 2d3ed2b22e44352404c2a3a3e719d28ff9f4f893 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Rollo Date: Mon, 7 Oct 2019 11:46:17 +0200 Subject: [PATCH] Fixed border glitch and weird transparency --- mapblockrenderer/renderer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapblockrenderer/renderer.go b/mapblockrenderer/renderer.go index 0cca14b..a859783 100644 --- a/mapblockrenderer/renderer.go +++ b/mapblockrenderer/renderer.go @@ -68,7 +68,7 @@ func addColorComponent(c *color.RGBA, value int) *color.RGBA { R: clamp(int(c.R) + value), G: clamp(int(c.G) + value), B: clamp(int(c.B) + value), - A: clamp(int(c.A) + value), + A: c.A, } } @@ -179,7 +179,7 @@ func (r *MapBlockRenderer) Render(pos1, pos2 *coords.MapBlockCoords) (*image.NRG if neighbourMapblock != nil && err == nil { top = neighbourMapblock.GetNodeName(x, y, 0) if y < 15 { - topAbove = neighbourMapblock.GetNodeName(x, y+1, z+0) + topAbove = neighbourMapblock.GetNodeName(x, y+1, 0) } } }