From 2e7d95f5a6be26388e149abb305cd4d3a0de1b06 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 10 Sep 2018 07:45:00 +1000 Subject: [PATCH] Fix sponge schem save --- .../com/plotsquared/sponge/util/SpongeSchematicHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 022e4146e..9c1c81f56 100644 --- a/Sponge/src/main/java/com/plotsquared/sponge/util/SpongeSchematicHandler.java +++ b/Sponge/src/main/java/com/plotsquared/sponge/util/SpongeSchematicHandler.java @@ -123,11 +123,11 @@ public class SpongeSchematicHandler extends SchematicHandler { ChunkLoc chunk = chunks.remove(0); int X = chunk.x; int Z = chunk.z; - int xxb = X << 4; - int zzb = Z << 4; - if (!worldObj.getChunk(xxb, 1, zzb).isPresent() && !worldObj.loadChunk(xxb, 1, zzb, false).isPresent()) { + if (!worldObj.getChunk(X, 0, Z).isPresent() && !worldObj.loadChunk(X, 0, Z, false).isPresent()) { continue; } + int xxb = X << 4; + int zzb = Z << 4; int xxt = xxb + 15; int zzt = zzb + 15;