From 3fb1b0cf6dc1c03a7836fa87e74119ee0f7cfbc7 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Wed, 31 Oct 2012 13:01:52 -1000 Subject: [PATCH] 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. --- infiniteworld.py | 1 + 1 file changed, 1 insertion(+) diff --git a/infiniteworld.py b/infiniteworld.py index 8def7ba..1eeb8ea 100644 --- a/infiniteworld.py +++ b/infiniteworld.py @@ -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)