From d9ad9f158b56d2e19c94dc4f2ebb8d8c837a5f59 Mon Sep 17 00:00:00 2001 From: BONNe Date: Tue, 1 Nov 2022 20:10:45 +0200 Subject: [PATCH] Fixes a mistake in clean super flat listener There was a logical mistake in checking if a clean super flat should work. --- .../listeners/flags/worldsettings/CleanSuperFlatListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/CleanSuperFlatListener.java b/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/CleanSuperFlatListener.java index ed4af3448..c1e714851 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/CleanSuperFlatListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/CleanSuperFlatListener.java @@ -141,7 +141,7 @@ public class CleanSuperFlatListener extends FlagListener { return !(e.getChunk().getBlock(0, 0, 0).getType().equals(Material.BEDROCK) && e.getChunk().getBlock(0, 1, 0).getType().equals(Material.DIRT) && e.getChunk().getBlock(0, 2, 0).getType().equals(Material.DIRT) && - e.getChunk().getBlock(0, 3, 0).getType().equals(Material.GRASS_BLOCK)) || + e.getChunk().getBlock(0, 3, 0).getType().equals(Material.GRASS_BLOCK)) && !(e.getChunk().getBlock(0, minHeight, 0).getType().equals(Material.BEDROCK) && e.getChunk().getBlock(0, minHeight + 1, 0).getType().equals(Material.DIRT) && e.getChunk().getBlock(0, minHeight + 2, 0).getType().equals(Material.DIRT) &&