diff options
| author | mat <git@matdoes.dev> | 2025-10-04 16:38:55 -1345 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-04 16:38:55 -1345 |
| commit | b77d030f718d6a681a09e36d620f1c596cf58a4e (patch) | |
| tree | f2d978eeb21037d67881af3ece26155c64d59f3e /azalea-client/src | |
| parent | 682f3c0e95966c39b3d135fc6364f891f3dfb30a (diff) | |
| download | azalea-drasl-b77d030f718d6a681a09e36d620f1c596cf58a4e.tar.xz | |
fix wrong pathfinding when we start calculating a new path and the current executing path is long
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/client.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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. |
