mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fix cluster create with non ascending coords
This commit is contained in:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user