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() {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue