diff --git a/src/core/entity_handle.rs b/src/core/entity_handle.rs index c4d7876..4af84a0 100644 --- a/src/core/entity_handle.rs +++ b/src/core/entity_handle.rs @@ -12,7 +12,7 @@ impl Plugin for EntityHandlePlugin { fn despawn(mut cmds: Commands, mut reader: ResMut>) { while let Some(e) = reader.read() { - cmds.entity(e).despawn(); + cmds.entity(e).try_despawn(); } }