setLight doesn't dirty the chunk if no section was found/created.
This commit is contained in:
parent
b5a8148609
commit
12e0ff3a22
@ -871,10 +871,9 @@ class WorldEditorDimension(object):
|
|||||||
sec = chunk.getSection(cy, create=True)
|
sec = chunk.getSection(cy, create=True)
|
||||||
if sec:
|
if sec:
|
||||||
array = getattr(sec, arrayName)
|
array = getattr(sec, arrayName)
|
||||||
assert array is not None
|
|
||||||
if array is not None:
|
if array is not None:
|
||||||
array[y & 0xf, z & 0xf, x & 0xf] = value
|
array[y & 0xf, z & 0xf, x & 0xf] = value
|
||||||
chunk.dirty = True
|
chunk.dirty = True
|
||||||
|
|
||||||
def getBlockLight(self, x, y, z, default=0):
|
def getBlockLight(self, x, y, z, default=0):
|
||||||
return self.getLight("BlockLight", x, y, z, default)
|
return self.getLight("BlockLight", x, y, z, default)
|
||||||
|
Reference in New Issue
Block a user