small enemies spawn adjustments

This commit is contained in:
2025-05-04 16:58:19 +02:00
parent 63c831f92f
commit 5bf718678a
3 changed files with 4 additions and 4 deletions

View File

@@ -162,7 +162,7 @@ fn shot_collision(
let shot_entity = if query_shot.contains(*e1) { *e1 } else { *e2 };
if let Ok(mut entity) = commands.get_entity(shot_entity) {
entity.despawn();
entity.try_despawn();
} else {
continue;
}

View File

@@ -173,7 +173,7 @@ fn shot_collision(
};
if let Ok(mut entity) = commands.get_entity(shot_entity) {
entity.despawn();
entity.try_despawn();
} else {
continue;
}