diff options
| author | mat <git@matdoes.dev> | 2025-03-20 03:35:59 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-03-20 03:35:59 +0000 |
| commit | aa2039c86888e8ef47072fde63634ec58b22a654 (patch) | |
| tree | bc69430f3e0f0d488d6154b72addfc80bbe563a7 /azalea-client/src/client.rs | |
| parent | 5c7332b4692986f8c0ca969d79a6eb39feca686a (diff) | |
| download | azalea-drasl-aa2039c86888e8ef47072fde63634ec58b22a654.tar.xz | |
upgrade deps and slightly improve docs
Diffstat (limited to 'azalea-client/src/client.rs')
| -rw-r--r-- | azalea-client/src/client.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 05c529b8..f18de86d 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -688,7 +688,11 @@ impl Client { /// receives the login packet, its true position may be set ticks /// later. pub fn position(&self) -> Vec3 { - Vec3::from(&self.component::<Position>()) + Vec3::from( + &self + .get_component::<Position>() + .expect("the client's position hasn't been initialized yet"), + ) } /// Get the position of this client's eyes. |
