incomplete impl of ZipSchematic.saveToFile; it only saves the already saved zipfile to another file ignoring the dirty, changed chunks in memory.

This commit is contained in:
David Vierra 2011-08-13 09:59:31 -10:00
parent e8870e76e4
commit e75b651304

View File

@ -8,6 +8,7 @@ from collections import deque;
import time
import zlib
import struct
import shutil
#infinite
Level = 'Level'
@ -2487,6 +2488,8 @@ class ZipSchematic (MCInfdevOldLevel):
def saveInPlace(self):
raise NotImplementedError, "Cannot save zipfiles yet!"
def saveToFile(self, filename):
shutil.copy(self.filename, filename)
def containsChunk(self, cx, cz):
return (cx, cz) in self.allChunks