From 8e9a142be879ae245700ea7bf23160a2b0b04767 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 9 Feb 2022 13:12:39 +0000 Subject: [PATCH] Correct height in HybridUtils, also use minGenHeight + 1 --- .../main/java/com/plotsquared/core/generator/HybridUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java b/Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java index 9e33ae70d..ba3f4509e 100644 --- a/Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java +++ b/Core/src/main/java/com/plotsquared/core/generator/HybridUtils.java @@ -147,7 +147,7 @@ public class HybridUtils { final int ctz = tz >> 4; final int width = tx - bx + 1; final int length = tz - bz + 1; - final int height = area.getMaxGenHeight() - area.getMinGenHeight(); + final int height = area.getMaxGenHeight() - area.getMinGenHeight() + 1; final int minHeight = area.getMinGenHeight(); final PlotArea area = this.plotAreaManager.getPlotArea(world, null); @@ -698,7 +698,7 @@ public class HybridUtils { } if (condition) { BaseBlock[] blocks = plotWorld.G_SCH.get(MathMan.pair(absX, absZ)); - int minY = Settings.Schematics.PASTE_ROAD_ON_TOP ? plotWorld.SCHEM_Y : area.getMinBuildHeight(); + int minY = Settings.Schematics.PASTE_ROAD_ON_TOP ? plotWorld.SCHEM_Y : area.getMinGenHeight() + 1; int maxDy = Math.max(extend, blocks.length); for (int dy = 0; dy < maxDy; dy++) { if (dy > blocks.length - 1) {