From 502eb17ddc4eb0c7b9ea0620adeb48f2d3977207 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 6 Jan 2026 08:11:31 -0500 Subject: deprecate InverseGoal --- azalea/src/pathfinder/goals.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'azalea/src') 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(pub T); +#[allow(deprecated)] impl Goal for InverseGoal { fn heuristic(&self, n: BlockPos) -> f32 { -self.0.heuristic(n) -- cgit v1.2.3