diff options
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/pathfinder/goals.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/azalea/src/pathfinder/goals.rs b/azalea/src/pathfinder/goals.rs index 8ec921c2..2c54b85a 100644 --- a/azalea/src/pathfinder/goals.rs +++ b/azalea/src/pathfinder/goals.rs @@ -130,7 +130,9 @@ impl Goal for RadiusGoal { /// Do the opposite of the given goal. #[derive(Debug)] +#[deprecated = "`InverseGoal` has poor performance and often doesn't work as expected, consider using different goals."] pub struct InverseGoal<T: Goal>(pub T); +#[allow(deprecated)] impl<T: Goal> Goal for InverseGoal<T> { fn heuristic(&self, n: BlockPos) -> f32 { -self.0.heuristic(n) |
