Fix any_component_removed (#8939)
# Objective `any_component_removed` condition is inversed. ## Solution Remove extra `!`. --- ## Changelog ### Fixed Fix `any_component_removed` condition.
This commit is contained in:
parent
cdaae01c74
commit
8a1f0a2997
@ -948,7 +948,7 @@ pub mod common_conditions {
|
||||
// Simply checking `is_empty` would not be enough.
|
||||
// PERF: note that `count` is efficient (not actually looping/iterating),
|
||||
// due to Bevy having a specialized implementation for events.
|
||||
move |mut removals: RemovedComponents<T>| !removals.iter().count() != 0
|
||||
move |mut removals: RemovedComponents<T>| removals.iter().count() != 0
|
||||
}
|
||||
|
||||
/// Generates a [`Condition`](super::Condition) that inverses the result of passed one.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user