From 502eb17ddc4eb0c7b9ea0620adeb48f2d3977207 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 6 Jan 2026 08:11:31 -0500 Subject: deprecate InverseGoal --- CHANGELOG.md | 2 ++ azalea/src/pathfinder/goals.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 584035be..50895163 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,12 +22,14 @@ is breaking anyways, semantic versioning is not followed. - `Client::ecs` is now an `RwLock` instead of a `Mutex`. - `Client::component` and `entity_component` now return a mapped RwLock guard instead of cloning the component. - Most functions on `Client` that previously returned `Entity` now return `EntityRef` instead. +- Deprecate pathfinder `InverseGoal`. ### Fixed - Serializing `FormattedText` with serde was writing `extra` twice. - Attack cooldowns were being applied incorrectly for tools. - `Identifier` had an incorrect `Hash` and `PartialEq` implementation. +- The pathfinder now avoids magma blocks. ## [0.15.0+mc1.21.11] - 2025-12-18 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