From db2d590e8e9a3205f74edbc176155bac0027947a Mon Sep 17 00:00:00 2001 From: Jordan Date: Sun, 23 Oct 2022 20:22:21 +0100 Subject: [PATCH] fix: account for mismatched road-schematic heights (#3854) --- .../java/com/plotsquared/core/generator/HybridPlotWorld.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java b/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java index 22b1a2f5e..6138f5325 100644 --- a/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java +++ b/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java @@ -298,7 +298,10 @@ public class HybridPlotWorld extends ClassicPlotWorld { int roadSchemHeight; if (schematic1 != null) { - roadSchemHeight = schematic1.getClipboard().getDimensions().getY(); + roadSchemHeight = Math.max( + schematic1.getClipboard().getDimensions().getY(), + schematic2.getClipboard().getDimensions().getY() + ); maxSchematicHeight = Math.max(roadSchemHeight, maxSchematicHeight); if (maxSchematicHeight == worldGenHeight) { SCHEM_Y = getMinGenHeight();