Fix translucent blocks below column height not updating skylight level.
This commit is contained in:
parent
29a921d660
commit
35d1f13a46
@ -321,9 +321,15 @@ cdef updateSkyLight(RelightCtx ctx,
|
||||
for y2 in range(oldH, h):
|
||||
c.y = y2
|
||||
dimCoords.push_back(c)
|
||||
# Translucent blocks below changed segment also reduced light level
|
||||
for y2 in range(oldH, -1, -1):
|
||||
c.y = y2
|
||||
dimCoords.push_back(c)
|
||||
if ctx.getBlockLight(c.x, c.y, c.z) == 0:
|
||||
break
|
||||
# Blocks above column may be in a newly created section.
|
||||
# This is a shitty, shitty answer. FIXME FIXME FIXME.
|
||||
c.y += 1
|
||||
c.y = h
|
||||
ctx.setBlockLight(c.x, c.y, c.z, 15)
|
||||
litCoords.push_back(c)
|
||||
if h < oldH:
|
||||
|
Reference in New Issue
Block a user