Backend: Add listDirtyChunks to let MCEdit find out which chunks to redraw after saving and relighting the level.
This commit is contained in:
parent
5b921d7c43
commit
5ed8c3daff
@ -1581,6 +1581,11 @@ class MCInfdevOldLevel(ChunkedLevelMixin, EntityLevel):
|
|||||||
for cx, cz in box.chunkPositions:
|
for cx, cz in box.chunkPositions:
|
||||||
self.markDirtyChunk(cx, cz)
|
self.markDirtyChunk(cx, cz)
|
||||||
|
|
||||||
|
def listDirtyChunks(self):
|
||||||
|
for cPos, chunkData in self._loadedChunkData.iteritems():
|
||||||
|
if chunkData.dirty:
|
||||||
|
yield cPos
|
||||||
|
|
||||||
# --- HeightMaps ---
|
# --- HeightMaps ---
|
||||||
|
|
||||||
def heightMapAt(self, x, z):
|
def heightMapAt(self, x, z):
|
||||||
|
Reference in New Issue
Block a user