From f6788f16e4d85ca1ad03b0d59a419a9fb9ce5746 Mon Sep 17 00:00:00 2001 From: Byron Marohn Date: Wed, 6 Feb 2019 20:48:30 -0800 Subject: [PATCH] Fix sponge schematics not correctly setting dimensions if there are no entities Signed-off-by: Byron Marohn --- .../worldedit/extent/clipboard/io/SpongeSchematicReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java index a33dc7c1e..31aed23d3 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java @@ -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) {