aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/movement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/movement.rs')
-rw-r--r--azalea-client/src/movement.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/azalea-client/src/movement.rs b/azalea-client/src/movement.rs
index bdc29f2f..8801e2c6 100644
--- a/azalea-client/src/movement.rs
+++ b/azalea-client/src/movement.rs
@@ -193,8 +193,7 @@ pub fn send_position(
Some(
ServerboundMovePlayerPosRot {
pos: **position,
- x_rot: direction.x_rot,
- y_rot: direction.y_rot,
+ look_direction: *direction,
on_ground: physics.on_ground(),
}
.into_variant(),
@@ -202,9 +201,7 @@ pub fn send_position(
} else if sending_position {
Some(
ServerboundMovePlayerPos {
- x: position.x,
- y: position.y,
- z: position.z,
+ pos: **position,
on_ground: physics.on_ground(),
}
.into_variant(),
@@ -212,8 +209,7 @@ pub fn send_position(
} else if sending_direction {
Some(
ServerboundMovePlayerRot {
- x_rot: direction.x_rot,
- y_rot: direction.y_rot,
+ look_direction: *direction,
on_ground: physics.on_ground(),
}
.into_variant(),