From 8cd92c8ffa1550ffe5641f7eb4af71e1c2637de2 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 12 Dec 2023 14:45:48 +0000 Subject: [PATCH] Adjust for if plot bedrock is enabled --- .../java/com/plotsquared/core/generator/ClassicPlotWorld.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/generator/ClassicPlotWorld.java b/Core/src/main/java/com/plotsquared/core/generator/ClassicPlotWorld.java index 5a907d6aa7..2983157249 100644 --- a/Core/src/main/java/com/plotsquared/core/generator/ClassicPlotWorld.java +++ b/Core/src/main/java/com/plotsquared/core/generator/ClassicPlotWorld.java @@ -159,8 +159,8 @@ public void loadConfiguration(ConfigurationSection config) { @Override public int getMinComponentHeight() { - return COMPONENT_BELOW_BEDROCK && PLOT_BEDROCK && getMinGenHeight() >= getMinBuildHeight() - ? getMinGenHeight() + 1 + return COMPONENT_BELOW_BEDROCK && getMinGenHeight() >= getMinBuildHeight() + ? getMinGenHeight() + (PLOT_BEDROCK ? 1 : 0) : getMinBuildHeight(); }