From deda202b5ad892c46b4e3d031c03f2d96adc10c0 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Sun, 22 Nov 2020 22:32:15 +0000 Subject: [PATCH] Prevent wildlife spawning in towns --- world/src/layer/wildlife.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world/src/layer/wildlife.rs b/world/src/layer/wildlife.rs index d5552cfbe1..203843c840 100644 --- a/world/src/layer/wildlife.rs +++ b/world/src/layer/wildlife.rs @@ -666,7 +666,7 @@ pub fn apply_wildlife_supplement<'a, R: Rng>( )| { let density = get_density(chunk, col_sample); if density > 0.0 - && dynamic_rng.gen::() < density + && dynamic_rng.gen::() < density * col_sample.spawn_rate && underwater == *is_underwater && col_sample.gradient < Some(1.3) {