mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
Fix cluster create with non ascending coords
This commit is contained in:
parent
91bfcd0deb
commit
064a555ba1
@ -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 New Issue
Block a user