Skip to content

fixes issue #92 #95

Merged
merged 1 commit into from Apr 10, 2012
View
9 infiniteworld.py
@@ -2761,9 +2761,12 @@ def _dirhash(self):
dirhashes = [_dirhash(n) for n in range(64)]
def regionFilename(self, rx, rz):
- s = os.path.join(self.regionDir,
- "r.%s.%s.mcr" % (rx, rz))
- return s
+ if self.version == self.VERSION_MCR:
+ EXTENSION = "mcr"
+ elif self.version == self.VERSION_ANVIL:
+ EXTENSION = "mca"
+
+ return os.path.join(self.regionDir, "r.%s.%s.%s" % (rx, rz, EXTENSION))
def chunkFilename(self, cx, cz):
s = os.path.join(self.worldDir, self.dirhash(cx), self.dirhash(cz),
Something went wrong with that request. Please try again.