zipfile.read returns the compressed data, so have ZipSchematic._loadChunk decompress it

This commit is contained in:
David Vierra 2011-03-09 13:52:14 -10:00
parent 1bf1cfa8b6
commit 938a7ee21b

View File

@ -3939,6 +3939,7 @@ class ZipSchematic (MCInfdevOldLevel):
else:
cdata = self.zipfile.read(chunk.chunkFilename)
chunk.compressedTag = cdata
chunk.decompress()
def _saveChunk(self, chunk):
raise NotImplementedError, "Cannot save zipfiles yet!"