From d78360d6eb79ad0fd88a852cd95e54f695c9387d Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 26 Mar 2023 13:31:01 +0100 Subject: [PATCH] fix: correct variable check in schematic dimensions - Fixes #3999 --- .../java/com/plotsquared/core/generator/HybridPlotWorld.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 2a7e8b4da..679a1b2df 100644 --- a/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java +++ b/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java @@ -323,7 +323,7 @@ public class HybridPlotWorld extends ClassicPlotWorld { short w3 = (short) d3.getX(); short l3 = (short) d3.getZ(); short h3 = (short) d3.getY(); - if (w3 > PLOT_WIDTH || h3 > PLOT_WIDTH) { + if (w3 > PLOT_WIDTH || l3 > PLOT_WIDTH) { this.ROAD_SCHEMATIC_ENABLED = true; } int centerShiftZ; @@ -378,7 +378,7 @@ public class HybridPlotWorld extends ClassicPlotWorld { } if ((schematic1 == null && schematic2 == null) || this.ROAD_WIDTH == 0) { if (Settings.DEBUG) { - LOGGER.info("- schematic: false"); + LOGGER.info("- road schematic: false"); } return; }