From 29b7406c93b8ff12facbc5d51177fac75858c51d Mon Sep 17 00:00:00 2001 From: David Vierra Date: Mon, 8 Jun 2015 00:39:23 -1000 Subject: [PATCH] Dirty hack to force chunk rescan after revision change Should inspect changes and update instead of rescanning --- src/mceditlib/worldeditor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mceditlib/worldeditor.py b/src/mceditlib/worldeditor.py index 686335f..198e5cf 100644 --- a/src/mceditlib/worldeditor.py +++ b/src/mceditlib/worldeditor.py @@ -338,6 +338,9 @@ class WorldEditor(object): self.recentDirtyFiles.update(changes.files) + # xxx slow, scan changes for chunks and check if they are added/removed + self._allChunks = None + def getRevisionChanges(self, oldIndex, newIndex): return self.adapter.getRevisionChanges(oldIndex, newIndex)