fix(core): don't display warning if entity handle can't despawn entity

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-08-05 23:07:08 +02:00
parent bb0f023040
commit 9e72edae67

View File

@@ -12,7 +12,7 @@ impl Plugin for EntityHandlePlugin {
fn despawn(mut cmds: Commands, mut reader: ResMut<BevyChannelReader<Entity>>) {
while let Some(e) = reader.read() {
cmds.entity(e).despawn();
cmds.entity(e).try_despawn();
}
}