diff options
Diffstat (limited to 'azalea/src/client_impl/movement.rs')
| -rw-r--r-- | azalea/src/client_impl/movement.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/azalea/src/client_impl/movement.rs b/azalea/src/client_impl/movement.rs index a708e5f6..6532997d 100644 --- a/azalea/src/client_impl/movement.rs +++ b/azalea/src/client_impl/movement.rs @@ -48,9 +48,8 @@ impl Client { /// Returns the direction the client is looking. /// /// See [`Self::set_direction`] for more details. - pub fn direction(&self) -> (f32, f32) { - let look_direction = *self.component::<LookDirection>(); - (look_direction.y_rot(), look_direction.x_rot()) + pub fn direction(&self) -> LookDirection { + *self.component::<LookDirection>() } /// Start walking in the given direction. |
