Skip to main content

is_spawn_allowed_on_difficulty

Function is_spawn_allowed_on_difficulty 

Source
fn is_spawn_allowed_on_difficulty(
    entity_type: EntityTypeRef,
    level: &World,
) -> bool
Expand description

Applies vanilla’s EntityType.canSpawn difficulty gate here until Steel has a creation/spawner gate that rejects hostile types on Peaceful.