mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 04:23:26 +00:00
Changes to world border
This commit is contained in:
parent
a2b29da39d
commit
cdcfd8c1b5
2 changed files with 6 additions and 11 deletions
|
@ -925,8 +925,9 @@ public class MainUtil {
|
|||
final String world = plot.world;
|
||||
final PlotManager manager = PS.get().getPlotManager(world);
|
||||
final PlotWorld plotworld = PS.get().getPlotWorld(world);
|
||||
final Location bot = manager.getPlotBottomLocAbs(plotworld, plot.id);
|
||||
final Location top = manager.getPlotTopLocAbs(plotworld, plot.id);
|
||||
PlotId id = new PlotId(Math.abs(plot.id.x) + 1, Math.abs(plot.id.x) + 1);
|
||||
final Location bot = manager.getPlotBottomLocAbs(plotworld, id);
|
||||
final Location top = manager.getPlotTopLocAbs(plotworld, id);
|
||||
final int border = worldBorder.get(plot.world);
|
||||
final int botmax = Math.max(Math.abs(bot.getX()), Math.abs(bot.getZ()));
|
||||
final int topmax = Math.max(Math.abs(top.getX()), Math.abs(top.getZ()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue