From fe65a0c548be7e67db38f5fadc7f924c4c64b11b Mon Sep 17 00:00:00 2001 From: Traks <58818927+traksag@users.noreply.github.com> Date: Wed, 14 Jul 2021 17:58:04 +0200 Subject: [PATCH] Fix off-by-one error in schematic pasting (#3160) --- .../main/java/com/plotsquared/core/util/SchematicHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2b59db2c5..a90834bee 100644 --- a/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java +++ b/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java @@ -365,7 +365,7 @@ public abstract class SchematicHandler { if (yy > 255 || yy < 0) { continue; } - 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++) { int xx = p1x + rx; int zz = p1z + rz;