add toggle for lake & spring features

This commit is contained in:
dags- 2020-04-02 23:21:06 +01:00
parent a79456aef6
commit 6f829bcc57
2 changed files with 9 additions and 2 deletions

View File

@ -325,10 +325,14 @@ public class TerraChunkGenerator extends ObfHelperChunkGenerator<GenerationSetti
modifiers.getPredicates().add(Matchers.stoneBlobs(), FeaturePredicate.DENY); modifiers.getPredicates().add(Matchers.stoneBlobs(), FeaturePredicate.DENY);
} }
if (!context.terraSettings.features.vanillaWaterFeatures) {
// block lakes and springs if not enabled
modifiers.getPredicates().add(FeatureMatcher.of(Feature.LAKE), FeaturePredicate.DENY);
modifiers.getPredicates().add(FeatureMatcher.of(Feature.SPRING_FEATURE), FeaturePredicate.DENY);
}
// block ugly features // block ugly features
modifiers.getPredicates().add(Matchers.sedimentDisks(), FeaturePredicate.DENY); modifiers.getPredicates().add(Matchers.sedimentDisks(), FeaturePredicate.DENY);
modifiers.getPredicates().add(FeatureMatcher.of(Feature.LAKE), FeaturePredicate.DENY);
modifiers.getPredicates().add(FeatureMatcher.of(Feature.SPRING_FEATURE), FeaturePredicate.DENY);
// limit to deep oceans // limit to deep oceans
modifiers.getPredicates().add(FeatureMatcher.of(Feature.SHIPWRECK), MinDepth.DEPTH55); modifiers.getPredicates().add(FeatureMatcher.of(Feature.SHIPWRECK), MinDepth.DEPTH55);

View File

@ -45,4 +45,7 @@ public class FeatureSettings {
@Comment("Use custom biome features in place of vanilla ones (such as trees)") @Comment("Use custom biome features in place of vanilla ones (such as trees)")
public boolean customBiomeFeatures = true; public boolean customBiomeFeatures = true;
@Comment("Controls whether vanilla lakes & springs should generate")
public boolean vanillaWaterFeatures = false;
} }