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:
parent
e8870e76e4
commit
e75b651304
@ -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
|
||||
|
Reference in New Issue
Block a user