From 09c84e25bfdc24b3097155fd04d922fa17c26307 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 16 Dec 2020 12:07:36 +0000 Subject: [PATCH] don't double-up schematic x/z offsets --- .../java/com/plotsquared/core/util/SchematicHandler.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java b/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java index f71680efb..da81f7cd5 100644 --- a/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java +++ b/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java @@ -337,8 +337,8 @@ public abstract class SchematicHandler { } for (int rz = 0; rz <= blockArrayClipboard.getDimensions().getZ(); rz++) { for (int rx = 0; rx < blockArrayClipboard.getDimensions().getX(); rx++) { - int xx = p1x + xOffset + rx; - int zz = p1z + zOffset + rz; + int xx = p1x + rx; + int zz = p1z + rz; BaseBlock id = blockArrayClipboard.getFullBlock(BlockVector3.at(rx, ry, rz)); queue.setBlock(xx, yy, zz, id); if (ry == 0) { @@ -348,9 +348,6 @@ public abstract class SchematicHandler { } } } - if (whenDone != null) { - whenDone.value = true; - } if (actor != null && Settings.QUEUE.NOTIFY_PROGRESS) { queue.addProgressSubscriber(subscriberFactory.createWithActor(actor)); }