Fix sponge schem save

This commit is contained in:
Jesse Boyd 2018-09-10 07:45:00 +10:00
parent 906f16d075
commit 2e7d95f5a6
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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;