aboutsummaryrefslogtreecommitdiff
path: root/azalea
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-01-06 08:11:31 -0500
committermat <git@matdoes.dev>2026-01-06 08:11:31 -0500
commit502eb17ddc4eb0c7b9ea0620adeb48f2d3977207 (patch)
treeff16f121731b6ff7f61e79223d757eb7e559069a /azalea
parent4c61a41476e383d8fb765790bd3dd65e4019c0f4 (diff)
downloadazalea-drasl-502eb17ddc4eb0c7b9ea0620adeb48f2d3977207.tar.xz
deprecate InverseGoal
Diffstat (limited to 'azalea')
-rw-r--r--azalea/src/pathfinder/goals.rs2
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)