From 8b8afc2010e3f10fb72b3cd86dd350ce97cd5f0a Mon Sep 17 00:00:00 2001 From: boy0001 Date: Tue, 10 Feb 2015 16:31:18 +1100 Subject: [PATCH] Fixed debugclear offset --- .../com/intellectualcrafters/plot/commands/DebugClear.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/DebugClear.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/DebugClear.java index d470df358..cfee7711a 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/DebugClear.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/DebugClear.java @@ -62,7 +62,7 @@ public class DebugClear extends SubCommand { PlotMain.sendConsoleSenderMessage("Could not find plot " + args[0] + " in world " + world); } else { World bukkitWorld = Bukkit.getWorld(world); - Location pos1 = PlotHelper.getPlotBottomLoc(bukkitWorld, plot.id); + Location pos1 = PlotHelper.getPlotBottomLoc(bukkitWorld, plot.id).add(1, 0, 1); Location pos2 = PlotHelper.getPlotTopLoc(bukkitWorld, plot.id); ChunkManager.regenerateRegion(pos1, pos2); PlotMain.sendConsoleSenderMessage("Plot " + plot.getId().toString() + " cleared."); @@ -86,7 +86,7 @@ public class DebugClear extends SubCommand { } assert plot != null; World bukkitWorld = plr.getWorld(); - Location pos1 = PlotHelper.getPlotBottomLoc(bukkitWorld, plot.id); + Location pos1 = PlotHelper.getPlotBottomLoc(bukkitWorld, plot.id).add(1, 0, 1); Location pos2 = PlotHelper.getPlotTopLoc(bukkitWorld, plot.id); ChunkManager.regenerateRegion(pos1, pos2); PlayerFunctions.sendMessage(plr, "&aDone!");