mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-12 03:59:22 +00:00
Fixed debugclear offset
This commit is contained in:
parent
f258c37171
commit
8b8afc2010
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ public class DebugClear extends SubCommand {
|
||||||
PlotMain.sendConsoleSenderMessage("Could not find plot " + args[0] + " in world " + world);
|
PlotMain.sendConsoleSenderMessage("Could not find plot " + args[0] + " in world " + world);
|
||||||
} else {
|
} else {
|
||||||
World bukkitWorld = Bukkit.getWorld(world);
|
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);
|
Location pos2 = PlotHelper.getPlotTopLoc(bukkitWorld, plot.id);
|
||||||
ChunkManager.regenerateRegion(pos1, pos2);
|
ChunkManager.regenerateRegion(pos1, pos2);
|
||||||
PlotMain.sendConsoleSenderMessage("Plot " + plot.getId().toString() + " cleared.");
|
PlotMain.sendConsoleSenderMessage("Plot " + plot.getId().toString() + " cleared.");
|
||||||
|
@ -86,7 +86,7 @@ public class DebugClear extends SubCommand {
|
||||||
}
|
}
|
||||||
assert plot != null;
|
assert plot != null;
|
||||||
World bukkitWorld = plr.getWorld();
|
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);
|
Location pos2 = PlotHelper.getPlotTopLoc(bukkitWorld, plot.id);
|
||||||
ChunkManager.regenerateRegion(pos1, pos2);
|
ChunkManager.regenerateRegion(pos1, pos2);
|
||||||
PlayerFunctions.sendMessage(plr, "&aDone!");
|
PlayerFunctions.sendMessage(plr, "&aDone!");
|
||||||
|
|
Loading…
Reference in a new issue