From 94bfb1ab4382ec490d9f140540a95ae6ec41aa83 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Mon, 29 Oct 2012 04:56:36 -1000 Subject: [PATCH] Fixed: deleteChunk removes the given chunk from allChunks and marks the world for recalculating its bounds. Previously the world would erroneously report a deleted chunk is still present. --- infiniteworld.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infiniteworld.py b/infiniteworld.py index c6388b6..7890392 100644 --- a/infiniteworld.py +++ b/infiniteworld.py @@ -1702,6 +1702,11 @@ class MCInfdevOldLevel(ChunkedLevelMixin, EntityLevel): def deleteChunk(self, cx, cz): self.worldFolder.deleteChunk(cx, cz) + if self._allChunks is not None: + self._allChunks.discard((cx, cz)) + + self._bounds = None + def deleteChunksInBox(self, box): info(u"Deleting {0} chunks in {1}".format((box.maxcx - box.mincx) * (box.maxcz - box.mincz), ((box.mincx, box.mincz), (box.maxcx, box.maxcz))))