From a07c656c69a91f897d1c16b2bcf9c975b8afa73d Mon Sep 17 00:00:00 2001 From: David Vierra Date: Wed, 16 Mar 2011 22:33:03 -1000 Subject: [PATCH] in containsChunk, just initiate a region scan instead of failing to load the region file --- mclevel.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mclevel.py b/mclevel.py index 803e363..6dc610f 100644 --- a/mclevel.py +++ b/mclevel.py @@ -3772,12 +3772,7 @@ class MCInfdevOldLevel(MCLevel): if self._allChunks is not None: return (cx, cz) in self._allChunks; if (cx,cz) in self._loadedChunks: return True; if self.version: - r = (cx>>5, cz>>5) - if r in self.regionFiles: - if self.regionFiles[r].getOffset(cx,cz): - return True - - return False + return (cx,cz) in self.allChunks else: return os.path.exists(self.chunkFilename(cx, cz))