mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 11:13:45 +01:00 
			
		
		
		
	fix: do not reset the connectedCache every time Plot#getRegions is called
- Fixes IntellectualSites/FastAsyncWorldEdit#2188
This commit is contained in:
		@@ -2418,7 +2418,6 @@ public class Plot {
 | 
				
			|||||||
        if (!this.isMerged()) {
 | 
					        if (!this.isMerged()) {
 | 
				
			||||||
            Location pos1 = this.getBottomAbs().withY(getArea().getMinBuildHeight());
 | 
					            Location pos1 = this.getBottomAbs().withY(getArea().getMinBuildHeight());
 | 
				
			||||||
            Location pos2 = this.getTopAbs().withY(getArea().getMaxBuildHeight());
 | 
					            Location pos2 = this.getTopAbs().withY(getArea().getMaxBuildHeight());
 | 
				
			||||||
            this.connectedCache = Sets.newHashSet(this);
 | 
					 | 
				
			||||||
            CuboidRegion rg = new CuboidRegion(pos1.getBlockVector3(), pos2.getBlockVector3());
 | 
					            CuboidRegion rg = new CuboidRegion(pos1.getBlockVector3(), pos2.getBlockVector3());
 | 
				
			||||||
            return Collections.singleton(rg);
 | 
					            return Collections.singleton(rg);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user