From ef4438889b369d6c82658d71495845f995171081 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 29 Mar 2016 18:09:40 +1100 Subject: [PATCH] Fix plot move --- .../com/intellectualcrafters/plot/object/Plot.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/object/Plot.java b/Core/src/main/java/com/intellectualcrafters/plot/object/Plot.java index 5672d3afa..3186479d7 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/object/Plot.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/object/Plot.java @@ -2737,14 +2737,19 @@ public class Plot { TaskManager.runTask(whenDone); return; } - Runnable task = this; + final Runnable task = this; RegionWrapper region = regions.poll(); Location[] corners = region.getCorners(Plot.this.area.worldname); - Location pos1 = corners[0]; - Location pos2 = corners[1]; + final Location pos1 = corners[0]; + final Location pos2 = corners[1]; Location newPos = pos1.clone().add(offsetX, 0, offsetZ); newPos.setWorld(destination.area.worldname); - ChunkManager.manager.regenerateRegion(pos1, pos2, false, task); + ChunkManager.manager.copyRegion(pos1, pos2, newPos, new Runnable() { + @Override + public void run() { + ChunkManager.manager.regenerateRegion(pos1, pos2, false, task); + } + }); } }; Runnable swap = new Runnable() {