From 0d9d5626cce89237bced2e4741eb3408e6dc988a Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sun, 14 Jun 2015 17:09:22 -1000 Subject: [PATCH] Update heightmap even when lighting is disabled. --- src/mceditlib/relight.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mceditlib/relight.py b/src/mceditlib/relight.py index 690cfff..ce293de 100644 --- a/src/mceditlib/relight.py +++ b/src/mceditlib/relight.py @@ -104,6 +104,8 @@ def updateHeightmap(dimension, x, y, z): # if not len(updatePos): return + if not ENABLE_LIGHTING: + return ys, zs, xs = zip(*updatePos) uy = numpy.concatenate(ys) @@ -149,9 +151,9 @@ def updateLights(dimension, x, y, z): :return: :rtype: """ + updateHeightmap(dimension, x, y, z) if not ENABLE_LIGHTING: return - updateHeightmap(dimension, x, y, z) brightness = numpy.array(dimension.blocktypes.brightness) brightness.dtype = 'int8'