From eab918bcd456dcdd404f14acc0f71096f401b284 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 10 Sep 2018 07:46:56 +1000 Subject: [PATCH] minor sponge cleanup --- .../com/plotsquared/sponge/util/SpongeSchematicHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sponge/src/main/java/com/plotsquared/sponge/util/SpongeSchematicHandler.java b/Sponge/src/main/java/com/plotsquared/sponge/util/SpongeSchematicHandler.java index 9c1c81f56..4bc55fd47 100644 --- a/Sponge/src/main/java/com/plotsquared/sponge/util/SpongeSchematicHandler.java +++ b/Sponge/src/main/java/com/plotsquared/sponge/util/SpongeSchematicHandler.java @@ -147,10 +147,10 @@ public class SpongeSchematicHandler extends SchematicHandler { int ry = y - sy; int i1 = ry * width * length; for (int z = zzb; z <= zzt; z++) { - int rz = z - p1z; + int rz = z - bz; int i2 = i1 + rz * width; for (int x = xxb; x <= xxt; x++) { - int rx = x - p1x; + int rx = x - bx; int index = i2 + rx; BlockState state = worldObj.getBlock(x, y, z);