don't double-up schematic x/z offsets

This commit is contained in:
dordsor21 2020-12-16 12:07:36 +00:00
parent 224e3b6ad4
commit 09c84e25bf
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -337,8 +337,8 @@ public abstract class SchematicHandler {
} }
for (int rz = 0; rz <= blockArrayClipboard.getDimensions().getZ(); rz++) { for (int rz = 0; rz <= blockArrayClipboard.getDimensions().getZ(); rz++) {
for (int rx = 0; rx < blockArrayClipboard.getDimensions().getX(); rx++) { for (int rx = 0; rx < blockArrayClipboard.getDimensions().getX(); rx++) {
int xx = p1x + xOffset + rx; int xx = p1x + rx;
int zz = p1z + zOffset + rz; int zz = p1z + rz;
BaseBlock id = blockArrayClipboard.getFullBlock(BlockVector3.at(rx, ry, rz)); BaseBlock id = blockArrayClipboard.getFullBlock(BlockVector3.at(rx, ry, rz));
queue.setBlock(xx, yy, zz, id); queue.setBlock(xx, yy, zz, id);
if (ry == 0) { if (ry == 0) {
@ -348,9 +348,6 @@ public abstract class SchematicHandler {
} }
} }
} }
if (whenDone != null) {
whenDone.value = true;
}
if (actor != null && Settings.QUEUE.NOTIFY_PROGRESS) { if (actor != null && Settings.QUEUE.NOTIFY_PROGRESS) {
queue.addProgressSubscriber(subscriberFactory.createWithActor(actor)); queue.addProgressSubscriber(subscriberFactory.createWithActor(actor));
} }