mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Use minGenHeight + 1 rather than build height in AugmentedUtils
This commit is contained in:
		@@ -132,7 +132,7 @@ public class AugmentedUtils {
 | 
			
		||||
                        int worldZ = z + blockZ;
 | 
			
		||||
                        boolean can = manager.getPlotId(worldX, 0, worldZ) == null;
 | 
			
		||||
                        if (can) {
 | 
			
		||||
                            for (int y = area.getMinBuildHeight(); y <= area.getMaxGenHeight(); y++) {
 | 
			
		||||
                            for (int y = area.getMinGenHeight() + 1; y <= area.getMaxGenHeight(); y++) {
 | 
			
		||||
                                queue.setBlock(worldX, y, worldZ, air);
 | 
			
		||||
                            }
 | 
			
		||||
                            canPlace[x][z] = true;
 | 
			
		||||
@@ -149,7 +149,7 @@ public class AugmentedUtils {
 | 
			
		||||
                secondaryMask = primaryMask;
 | 
			
		||||
                for (int x = relativeBottomX; x <= relativeTopX; x++) {
 | 
			
		||||
                    for (int z = relativeBottomZ; z <= relativeTopZ; z++) {
 | 
			
		||||
                        for (int y = area.getMinBuildHeight(); y <= area.getMaxGenHeight(); y++) {
 | 
			
		||||
                        for (int y = area.getMinGenHeight() + 1; y <= area.getMaxGenHeight(); y++) {
 | 
			
		||||
                            queue.setBlock(blockX + x, y, blockZ + z, air);
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user