Fixed: Scan the unsaved work folder and _loadedChunkData in addition to the world folder when listing chunks.
Newly created chunks will only show up in _loadedChunkData and chunks that have been "swapped out" will only show up in the unsaved work folder. This fixes a problem where flood fill could not be undone.
This commit is contained in:
parent
fae5e61057
commit
3fb1b0cf6d
@ -1264,6 +1264,7 @@ class MCInfdevOldLevel(ChunkedLevelMixin, EntityLevel):
|
||||
log.info(u"Scanning for regions...")
|
||||
self._allChunks = self.worldFolder.listChunks()
|
||||
self._allChunks.update(self.unsavedWorkFolder.listChunks())
|
||||
self._allChunks.update(self._loadedChunkData.iterkeys())
|
||||
|
||||
def getRegionForChunk(self, cx, cz):
|
||||
return self.worldFolder.getRegionFile(cx, cz)
|
||||
|
Reference in New Issue
Block a user