setLight doesn't dirty the chunk if no section was found/created.

This commit is contained in:
David Vierra 2015-06-30 19:35:38 -10:00
parent b5a8148609
commit 12e0ff3a22

View File

@ -871,10 +871,9 @@ class WorldEditorDimension(object):
sec = chunk.getSection(cy, create=True)
if sec:
array = getattr(sec, arrayName)
assert array is not None
if array is not None:
array[y & 0xf, z & 0xf, x & 0xf] = value
chunk.dirty = True
chunk.dirty = True
def getBlockLight(self, x, y, z, default=0):
return self.getLight("BlockLight", x, y, z, default)