Fixed border glitch and weird transparency

This commit is contained in:
Pierre-Yves Rollo 2019-10-07 11:46:17 +02:00 committed by NatureFreshMilk
parent 3d850d9399
commit 2d3ed2b22e

View File

@ -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)
}
}
}