aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/movement.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-12-19 02:31:08 +0000
committermat <git@matdoes.dev>2024-12-19 02:52:41 +0000
commite268c4929177e540baa9d2bb29bc171f49cc7a25 (patch)
tree10146e529088ab823452a5971c0a37a8886b2a68 /azalea-client/src/movement.rs
parent1f06a1540f46d8087907566d7c6c1ab397c517ec (diff)
downloadazalea-drasl-e268c4929177e540baa9d2bb29bc171f49cc7a25.tar.xz
fix incorrect packets
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(),