Fix cluster create with non ascending coords

This commit is contained in:
boy0001 2015-09-14 18:39:07 +10:00
parent 91bfcd0deb
commit 064a555ba1

View File

@ -127,8 +127,9 @@ public class Cluster extends SubCommand {
}
}
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));
pos1 = tmp;
}
//check if overlap
final String world = plr.getLocation().getWorld();