Move default in switch to be the last entry

This commit is contained in:
Mrbysco 2024-11-20 15:17:46 +01:00
parent c8e90aefd7
commit 7a95edfcaa

View file

@ -25,8 +25,6 @@ public record BoolConfigFeatureBiomeModifier(HolderSet<Biome> biomes, HolderSet<
private boolean checkConfig() { private boolean checkConfig() {
switch (boolConfig) { switch (boolConfig) {
default:
return true;
case "generateQuartz": case "generateQuartz":
return CommonConfig.Worldgen.GENERATE_QUARTZ.get(); return CommonConfig.Worldgen.GENERATE_QUARTZ.get();
case "generateCanola": case "generateCanola":
@ -35,6 +33,8 @@ public record BoolConfigFeatureBiomeModifier(HolderSet<Biome> biomes, HolderSet<
return CommonConfig.Worldgen.GENERATE_FLAX.get(); return CommonConfig.Worldgen.GENERATE_FLAX.get();
case "generateCoffee": case "generateCoffee":
return CommonConfig.Worldgen.GENERATE_COFFEE.get(); return CommonConfig.Worldgen.GENERATE_COFFEE.get();
default:
return true;
} }
} }