Skip to content

Commit 8cd92c8

Browse files
committed
Adjust for if plot bedrock is enabled
1 parent d85e3f4 commit 8cd92c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/src/main/java/com/plotsquared/core/generator/ClassicPlotWorld.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ public void loadConfiguration(ConfigurationSection config) {
159159

160160
@Override
161161
public int getMinComponentHeight() {
162-
return COMPONENT_BELOW_BEDROCK && PLOT_BEDROCK && getMinGenHeight() >= getMinBuildHeight()
163-
? getMinGenHeight() + 1
162+
return COMPONENT_BELOW_BEDROCK && getMinGenHeight() >= getMinBuildHeight()
163+
? getMinGenHeight() + (PLOT_BEDROCK ? 1 : 0)
164164
: getMinBuildHeight();
165165
}
166166

0 commit comments

Comments
 (0)