this repo has no description

fix the ghost being kinda silly sometimes

+6 -1
+6 -1
src/main.rs
··· 45 45 } 46 46 47 47 #[derive(Component)] 48 + #[relationship(relationship_target = TargetedBerry)] 48 49 pub struct TargetBerry(pub Entity); 49 50 51 + #[derive(Component)] 52 + #[relationship_target(relationship = TargetBerry)] 53 + pub struct TargetedBerry(Entity); 54 + 50 55 fn find_closest_berry( 51 56 In(input): In<OperatorInput>, 52 57 mut commands: Commands, 53 - berries: Query<(Entity, &Transform), With<Berry>>, 58 + berries: Query<(Entity, &Transform), (With<Berry>, Without<TargetedBerry>, Without<Plan>)>, 54 59 planner: Query<&Transform, With<Plan>>, 55 60 ) -> OperatorStatus { 56 61 let pos = planner.get(input.entity).unwrap().translation.xy();