mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-21 15:03:30 +01:00
Move default in switch to be the last entry
This commit is contained in:
parent
c8e90aefd7
commit
7a95edfcaa
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,6 @@ public record BoolConfigFeatureBiomeModifier(HolderSet<Biome> 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<Biome> biomes, HolderSet<
|
|||
return CommonConfig.Worldgen.GENERATE_FLAX.get();
|
||||
case "generateCoffee":
|
||||
return CommonConfig.Worldgen.GENERATE_COFFEE.get();
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue