Merge pull request #40 from Combustible/sponge_schematic_tweak

Fix sponge schematics not correctly setting dimensions if there are no entities
This commit is contained in:
Jesse Boyd 2019-04-01 13:42:47 +11:00 committed by GitHub
commit a44c38c170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,7 +210,7 @@ public class SpongeSchematicReader extends NBTSchematicReader {
});
streamer.readFully();
if (fc == null) setupClipboard(length * width * height, uuid);
else fc.setDimensions(new Vector(width, height, length));
fc.setDimensions(new Vector(width, height, length));
Vector origin = min;
CuboidRegion region;
if (offsetX != Integer.MIN_VALUE && offsetY != Integer.MIN_VALUE && offsetZ != Integer.MIN_VALUE) {