mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-26 02:34:42 +02:00
Clean up PlotId
This commit is contained in:
@ -34,20 +34,20 @@ if (PS.hasPlotArea("%s0")) {
|
||||
var maxplot;
|
||||
for (var i in plots) {
|
||||
var plot = plots[i];
|
||||
if (plot.x > max) {
|
||||
max = plot.x;
|
||||
if (plot.getX() > max) {
|
||||
max = plot.getX();
|
||||
maxplot = plot;
|
||||
}
|
||||
if (plot.y > max) {
|
||||
max = plot.y;
|
||||
if (plot.getY() > max) {
|
||||
max = plot.getY();
|
||||
maxplot = plot;
|
||||
}
|
||||
if (-plot.x > max) {
|
||||
max = -plot.x;
|
||||
if (-plot.getX() > max) {
|
||||
max = -plot.getX();
|
||||
maxplot = plot;
|
||||
}
|
||||
if (-plot.y > max) {
|
||||
max = -plot.y;
|
||||
if (-plot.getY() > max) {
|
||||
max = -plot.getY();
|
||||
maxplot = plot;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user