clear region offsets when deleting chunks
This commit is contained in:
parent
283bd4ba9b
commit
a3097b1072
@ -3578,15 +3578,14 @@ class MCInfdevOldLevel(MCLevel):
|
|||||||
return self.createChunks(box.chunkPositions);
|
return self.createChunks(box.chunkPositions);
|
||||||
|
|
||||||
def deleteChunk(self, cx, cz):
|
def deleteChunk(self, cx, cz):
|
||||||
filename = self.chunkFilename(cx,cz)
|
|
||||||
if os.path.exists(filename):
|
|
||||||
os.remove(filename)
|
|
||||||
|
|
||||||
if self._allChunks is not None: self._allChunks.discard( (cx,cz) )
|
if self._allChunks is not None: self._allChunks.discard( (cx,cz) )
|
||||||
|
|
||||||
if (cx,cz) in self._loadedChunks:
|
if (cx,cz) in self._loadedChunks:
|
||||||
del self._loadedChunks[(cx,cz)]
|
del self._loadedChunks[(cx,cz)]
|
||||||
|
|
||||||
|
self.regionFiles[cx>>5,cz>>5].setOffset(cx&0x1f , cz&0x1f, 0)
|
||||||
|
|
||||||
self._bounds = None
|
self._bounds = None
|
||||||
|
|
||||||
def deleteChunksInBox(self, box):
|
def deleteChunksInBox(self, box):
|
||||||
|
Reference in New Issue
Block a user