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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user