compressAllChunks added to free up memory in a hurry
This commit is contained in:
parent
473154a833
commit
e6528bfd4d
@ -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()
|
||||
|
Reference in New Issue
Block a user