mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 11:40:41 +00:00
Fix cluster create with non ascending coords
This commit is contained in:
parent
91bfcd0deb
commit
064a555ba1
1 changed files with 2 additions and 1 deletions
|
@ -127,8 +127,9 @@ public class Cluster extends SubCommand {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((pos2.x < pos1.x) || (pos2.y < pos1.y)) {
|
if ((pos2.x < pos1.x) || (pos2.y < pos1.y)) {
|
||||||
pos1 = new PlotId(Math.min(pos1.x, pos2.x), Math.min(pos1.y, pos2.y));
|
PlotId tmp = new PlotId(Math.min(pos1.x, pos2.x), Math.min(pos1.y, pos2.y));
|
||||||
pos2 = new PlotId(Math.max(pos1.x, pos2.x), Math.max(pos1.y, pos2.y));
|
pos2 = new PlotId(Math.max(pos1.x, pos2.x), Math.max(pos1.y, pos2.y));
|
||||||
|
pos1 = tmp;
|
||||||
}
|
}
|
||||||
//check if overlap
|
//check if overlap
|
||||||
final String world = plr.getLocation().getWorld();
|
final String world = plr.getLocation().getWorld();
|
||||||
|
|
Loading…
Reference in a new issue