Fix sponge schematics not correctly setting dimensions if there are no entities

Signed-off-by: Byron Marohn <combustible@live.com>
This commit is contained in:
Byron Marohn 2019-02-06 20:48:30 -08:00
parent be41e8dea0
commit f6788f16e4

View File

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