From f87e31683e25945cf7c19de3948d86d629f29df6 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 2 Apr 2019 00:19:32 +1100 Subject: [PATCH] don't use origin as the region bounds --- .../worldedit/extent/clipboard/io/SpongeSchematicReader.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 4cb2e13c5..a7661ed9b 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 @@ -221,10 +221,8 @@ public class SpongeSchematicReader extends NBTSchematicReader { CuboidRegion region; if (offsetX != Integer.MIN_VALUE && offsetY != Integer.MIN_VALUE && offsetZ != Integer.MIN_VALUE) { origin = origin.subtract(BlockVector3.at(offsetX, offsetY, offsetZ)); - region = new CuboidRegion(origin, origin.add(width, height, length).subtract(BlockVector3.ONE)); - } else { - region = new CuboidRegion(min, min.add(width, height, length).subtract(BlockVector3.ONE)); } + region = new CuboidRegion(min, min.add(width, height, length).subtract(BlockVector3.ONE)); if (blocksOut.getSize() != 0) { try (FaweInputStream fis = new FaweInputStream(new LZ4BlockInputStream(new FastByteArraysInputStream(blocksOut.toByteArrays())))) { int volume = width * height * length;