diff --git a/src/lib.rs b/src/lib.rs index 36decce..1c91500 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2370,8 +2370,9 @@ impl TweenAnim { ); }); + let mut cmds = world.commands(); for entity in to_remove.drain(..) { - world.entity_mut(entity).remove::(); + cmds.entity(entity).try_remove::(); } world.flush();