From e6528bfd4db5ba467ef1cc809aa6acbdac6876dd Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sat, 6 Nov 2010 02:31:39 -1000 Subject: [PATCH] compressAllChunks added to free up memory in a hurry --- mclevel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mclevel.py b/mclevel.py index 7beb20f..fabba2c 100644 --- a/mclevel.py +++ b/mclevel.py @@ -1960,6 +1960,10 @@ class MCInfdevOldLevel(MCLevel): self.compressedTags[c] = chunkfh.read(); chunkfh.close(); + def compressAllChunks(self): + for ch in self._presentChunks.itervalues(): + ch.compress(); + def compressChunk(self, x, z): if not (x,z) in self._presentChunks: return; #not an error self._presentChunks[x,z].compress()