From 0fdb358291b97f4229d6e7866c493c1fa8adce0f Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 4 Jan 2015 16:01:23 +1100 Subject: [PATCH] Potential plot clear fix --- .../intellectualcrafters/plot/util/PlotHelper.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/PlotHelper.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/PlotHelper.java index 9963aa1fc..97dae4179 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/PlotHelper.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/PlotHelper.java @@ -692,6 +692,17 @@ import java.util.UUID; state = h; manager.clearPlot(world, plot, isDelete); + + if (canSetFast) { + final Plugin plugin = PlotMain.getMain(); + Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() { + @Override + public void run() { + PlotHelper.setBiome(world, plot, Biome.FOREST); + refreshPlotChunks(world, plot); + } + }, 90L); + } } /** @@ -724,7 +735,6 @@ import java.util.UUID; removeSign(world, plot); final Plugin plugin = PlotMain.getMain(); PlayerFunctions.sendMessage(requester, C.CLEARING_DONE.s().replaceAll("%time%", "" + ((System.currentTimeMillis() - start)))); - } public static void setCuboid(final World world, final Location pos1, final Location pos2, final PlotBlock newblock) {