This commit is contained in:
xavo95 2024-11-03 21:38:32 +01:00
parent 4e7e7bbba6
commit b316e5f0ac
Signed by: xavo95
GPG key ID: CBF8ADED6DEBB783

View file

@ -303,7 +303,6 @@ pub fn add_entities(player: &Player, entities: &[&LevelEntityConfigData]) {
for entity in entities {
// TODO: review other types
tracing::debug!("Entity to be added of type: {}", entity.blueprint_type);
if entity.blueprint_type.contains("Monster") {
added_entities.push(build_monster_entity(
world,
@ -311,6 +310,8 @@ pub fn add_entities(player: &Player, entities: &[&LevelEntityConfigData]) {
entity.map_id,
Transform::from(&entity.transform[..]),
));
} else {
tracing::debug!("Unhandled entity to be added of type: {}", entity.blueprint_type);
}
}
}