diff options
Diffstat (limited to 'azalea-client/src/client.rs')
| -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. |
