From 61022b717a370425c1ceb6db6c9333b1926fa2e9 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 21 Sep 2016 13:42:59 +1000 Subject: [PATCH] Fixes #1360 --- .../java/com/plotsquared/bukkit/util/block/GenChunk.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/util/block/GenChunk.java b/Bukkit/src/main/java/com/plotsquared/bukkit/util/block/GenChunk.java index 90d235fc4..7a7df59f8 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/block/GenChunk.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/block/GenChunk.java @@ -28,12 +28,6 @@ public class GenChunk extends ScopedLocalBlockQueue { public GenChunk(Chunk chunk, ChunkWrapper wrap) { super(null, new Location(null, 0, 0, 0), new Location(null, 15, 255, 15)); - if ((this.chunk = chunk) == null && (wrap) != null) { - World world = BukkitUtil.getWorld(wrap.world); - if (world != null) { - this.chunk = world.getChunkAt(wrap.x, wrap.z); - } - } this.biomes = Biome.values(); } @@ -191,7 +185,7 @@ public class GenChunk extends ScopedLocalBlockQueue { } public GenChunk shallowClone() { - GenChunk toReturn = new GenChunk(chunk, new ChunkWrapper(getWorld(), chunk.getX(), chunk.getZ())); + GenChunk toReturn = new GenChunk(chunk, new ChunkWrapper(getWorld(), getX(), getZ())); toReturn.result = this.result; toReturn.result_data = this.result_data; toReturn.cd = this.cd;