diff --git a/schematic.py b/schematic.py index e2d24c4..2dff546 100644 --- a/schematic.py +++ b/schematic.py @@ -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)