mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Prevent wildlife spawning in towns
This commit is contained in:
parent
0513a41981
commit
deda202b5a
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user