Fix ownership update condition #107

Merged
raphael merged 2 commits from fix-ownership into main 2024-04-03 20:42:39 +00:00
Showing only changes of commit 957ee73bce - Show all commits

View file

@ -30,7 +30,7 @@ fn setup_ownership_resources(mut commands: Commands) {
}
/// The type condition for update ownership.
type OwnershipUpdate = (Changed<Owner>, Changed<Sprite>);
type OwnershipUpdate = Or<(Changed<Owner>, Changed<Sprite>)>;
/// Render the ownership of the tiles by applying colors.
fn render_ownership(