diff options
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | azalea/src/pathfinder/goals.rs | 2 |
2 files changed, 4 insertions, 0 deletions
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<T: Goal>(pub T); +#[allow(deprecated)] impl<T: Goal> Goal for InverseGoal<T> { fn heuristic(&self, n: BlockPos) -> f32 { -self.0.heuristic(n) |
