Cancel rivers in Biomes
@@ -5,6 +5,7 @@ import java.util.Random;
import com.ferreusveritas.dynamictrees.ModConstants;
import com.ferreusveritas.dynamictrees.api.worldgen.IBiomeDensityProvider;
+import com.ferreusveritas.dynamictrees.api.worldgen.IBiomeDensityProvider.EnumChance;
import com.ferreusveritas.dynamictrees.trees.Species;
import com.ferreusveritas.dynamictrees.util.CompatHelper;
import com.ferreusveritas.dynamictrees.util.MathHelper;
@@ -91,6 +92,9 @@ public class DefaultBiomeDensityProvider implements IBiomeDensityProvider {
else if(CompatHelper.getBiomeTreesPerChunk(biome) < 0) {//Deserts, Mesas, Beaches(-999) Mushroom Island(-100)
return (rnd, spc, rad) -> { return EnumChance.CANCEL; };
}
+ if (biome == Biomes.RIVER) {
+ return (rnd, spc, rad) -> { return EnumChance.CANCEL; };
+ }
else {
return (rnd, spc, rad) -> {//Let the radius determine the chance
//Start dropping tree spawn opportunities when the radius gets bigger than 3
