From c5f9945e37f55777451006b2f1e7d734cc45a5f7 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 23 Oct 2022 11:03:29 +0100 Subject: [PATCH] fix: account for mismatched road-schematic heights --- .../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();