put the extract methods back onto MCLevel
This commit is contained in:
parent
225f813d28
commit
daf593378b
@ -468,6 +468,8 @@ def extractSchematicFrom(sourceLevel, box):
|
||||
|
||||
return tempSchematic
|
||||
|
||||
MCLevel.extractSchematic = extractSchematicFrom
|
||||
|
||||
import tempfile
|
||||
def extractZipSchematicFrom(sourceLevel, box, zipfilename):
|
||||
#converts classic blocks to alpha
|
||||
@ -514,6 +516,8 @@ def extractZipSchematicFrom(sourceLevel, box, zipfilename):
|
||||
import shutil
|
||||
shutil.rmtree(filename)
|
||||
|
||||
MCLevel.extractZipSchematic = extractZipSchematicFrom
|
||||
|
||||
from zipfile import ZipFile, ZIP_STORED
|
||||
def zipdir(basedir, archivename):
|
||||
assert os.path.isdir(basedir)
|
||||
|
Reference in New Issue
Block a user