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:
Hennadii Chernyshchyk 2023-06-23 20:08:47 +03:00 committed by GitHub
parent cdaae01c74
commit 8a1f0a2997
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -948,7 +948,7 @@ pub mod common_conditions {
// Simply checking `is_empty` would not be enough. // Simply checking `is_empty` would not be enough.
// PERF: note that `count` is efficient (not actually looping/iterating), // PERF: note that `count` is efficient (not actually looping/iterating),
// due to Bevy having a specialized implementation for events. // 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. /// Generates a [`Condition`](super::Condition) that inverses the result of passed one.