From 7a95edfcaae11ddd2918390e1e8d830cfd7f179a Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Wed, 20 Nov 2024 15:17:46 +0100 Subject: [PATCH] Move default in switch to be the last entry --- .../mod/gen/modifier/BoolConfigFeatureBiomeModifier.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/gen/modifier/BoolConfigFeatureBiomeModifier.java b/src/main/java/de/ellpeck/actuallyadditions/mod/gen/modifier/BoolConfigFeatureBiomeModifier.java index 6f5412af6..083e92e2d 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/gen/modifier/BoolConfigFeatureBiomeModifier.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/gen/modifier/BoolConfigFeatureBiomeModifier.java @@ -25,8 +25,6 @@ public record BoolConfigFeatureBiomeModifier(HolderSet biomes, HolderSet< private boolean checkConfig() { switch (boolConfig) { - default: - return true; case "generateQuartz": return CommonConfig.Worldgen.GENERATE_QUARTZ.get(); case "generateCanola": @@ -35,6 +33,8 @@ public record BoolConfigFeatureBiomeModifier(HolderSet biomes, HolderSet< return CommonConfig.Worldgen.GENERATE_FLAX.get(); case "generateCoffee": return CommonConfig.Worldgen.GENERATE_COFFEE.get(); + default: + return true; } }