ITADN

Success state sometimes not run

#102Openisidornygren 创建于 2024-07-25
bug
I
isidornygrencommented
Hello and thanks for an amazing library. I'm running into an issue when using a Success | Failure matcher for action cleanup: ```rust ... ActionState::Cancelled => { *state = ActionState::Failure; } ActionState::Failure | ActionState::Success => { commands.entity(*actor).remove::<SomeMarker>(); } ``` Which I assumed would run if the action failed or successfully completed at any point. However, after doing some test runs I can see that an action can successfully complete without running the cleanup routine _sometimes_, but I'm not sure why. I'll investigate a bit on my end and report if I find any further clues.
1 条评论