From ae3b86ed53dadb7f4ec675299f293abbc227b572 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 9 Feb 2022 13:11:39 +0000 Subject: [PATCH] Use minGenHeight + 1 rather than build height in AugmentedUtils --- .../java/com/plotsquared/core/generator/AugmentedUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/generator/AugmentedUtils.java b/Core/src/main/java/com/plotsquared/core/generator/AugmentedUtils.java index 42609669e..6830d0797 100644 --- a/Core/src/main/java/com/plotsquared/core/generator/AugmentedUtils.java +++ b/Core/src/main/java/com/plotsquared/core/generator/AugmentedUtils.java @@ -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); } }