From 064a555ba10a85adc194160bf59f138d0daa27a9 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Mon, 14 Sep 2015 18:39:07 +1000 Subject: [PATCH] Fix cluster create with non ascending coords --- .../java/com/intellectualcrafters/plot/commands/Cluster.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/intellectualcrafters/plot/commands/Cluster.java b/src/main/java/com/intellectualcrafters/plot/commands/Cluster.java index 0720ad397..9ce75b88e 100644 --- a/src/main/java/com/intellectualcrafters/plot/commands/Cluster.java +++ b/src/main/java/com/intellectualcrafters/plot/commands/Cluster.java @@ -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();