Prevent wildlife spawning in towns

This commit is contained in:
Joshua Barretto 2020-11-22 22:32:15 +00:00
parent 0513a41981
commit deda202b5a

View File

@ -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::<f32>() < density
&& dynamic_rng.gen::<f32>() < density * col_sample.spawn_rate
&& underwater == *is_underwater
&& col_sample.gradient < Some(1.3)
{