Fix deleted chunks not being purged from caches.
This commit is contained in:
parent
ced819a668
commit
787e8ba5c8
@ -539,6 +539,16 @@ class WorldEditor(object):
|
|||||||
if self._allChunks is not None:
|
if self._allChunks is not None:
|
||||||
self._allChunks[dimName].discard((cx, cz))
|
self._allChunks[dimName].discard((cx, cz))
|
||||||
|
|
||||||
|
self._chunkDataCache.decache(cx, cz, dimName)
|
||||||
|
chunk = None
|
||||||
|
for c in self.recentChunks:
|
||||||
|
if c.chunkPosition == (cx, cz) and c.dimName == dimName:
|
||||||
|
chunk = c
|
||||||
|
break
|
||||||
|
|
||||||
|
if chunk:
|
||||||
|
self.recentChunks.remove(chunk)
|
||||||
|
|
||||||
# --- World metadata ---
|
# --- World metadata ---
|
||||||
|
|
||||||
def getWorldMetadata(self):
|
def getWorldMetadata(self):
|
||||||
|
Reference in New Issue
Block a user