From b77d030f718d6a681a09e36d620f1c596cf58a4e Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 4 Oct 2025 16:38:55 -1345 Subject: fix wrong pathfinding when we start calculating a new path and the current executing path is long --- azalea-client/src/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'azalea-client') diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index efc911c0..bb827838 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -373,7 +373,9 @@ impl Client { /// This is a shortcut for /// `bot.position().up(bot.dimensions().eye_height)`. pub fn eye_position(&self) -> Vec3 { - self.position().up(self.dimensions().eye_height as f64) + self.query_self::<(&Position, &EntityDimensions), _>(|(pos, dim)| { + pos.up(dim.eye_height as f64) + }) } /// Get the health of this client. -- cgit v1.2.3