in containsChunk, just initiate a region scan instead of failing to load the region file
This commit is contained in:
parent
f52bacdc29
commit
a07c656c69
@ -3772,12 +3772,7 @@ class MCInfdevOldLevel(MCLevel):
|
|||||||
if self._allChunks is not None: return (cx, cz) in self._allChunks;
|
if self._allChunks is not None: return (cx, cz) in self._allChunks;
|
||||||
if (cx,cz) in self._loadedChunks: return True;
|
if (cx,cz) in self._loadedChunks: return True;
|
||||||
if self.version:
|
if self.version:
|
||||||
r = (cx>>5, cz>>5)
|
return (cx,cz) in self.allChunks
|
||||||
if r in self.regionFiles:
|
|
||||||
if self.regionFiles[r].getOffset(cx,cz):
|
|
||||||
return True
|
|
||||||
|
|
||||||
return False
|
|
||||||
else:
|
else:
|
||||||
return os.path.exists(self.chunkFilename(cx, cz))
|
return os.path.exists(self.chunkFilename(cx, cz))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user