compressAllChunks added to free up memory in a hurry

This commit is contained in:
David Vierra 2010-11-06 02:31:39 -10:00
parent 473154a833
commit e6528bfd4d

View File

@ -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()