From 29c32c9ba89d60b5b0e415eaab58b947080655c5 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 12 Aug 2025 10:47:33 +1000 Subject: fix rotations flagging anticheats --- azalea-protocol/src/common/movements.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'azalea-protocol/src') diff --git a/azalea-protocol/src/common/movements.rs b/azalea-protocol/src/common/movements.rs index 6475b46f..265b4b65 100644 --- a/azalea-protocol/src/common/movements.rs +++ b/azalea-protocol/src/common/movements.rs @@ -63,14 +63,14 @@ impl RelativeMovements { ); let new_look_direction = LookDirection::new( - apply_change(direction.y_rot, self.y_rot, change.look_direction.y_rot), - apply_change(direction.x_rot, self.x_rot, change.look_direction.x_rot), + apply_change(direction.y_rot(), self.y_rot, change.look_direction.y_rot()), + apply_change(direction.x_rot(), self.x_rot, change.look_direction.x_rot()), ); let mut new_delta = physics.velocity; if self.rotate_delta { - let y_rot_delta = direction.y_rot - new_look_direction.y_rot; - let x_rot_delta = direction.x_rot - new_look_direction.x_rot; + let y_rot_delta = direction.y_rot() - new_look_direction.y_rot(); + let x_rot_delta = direction.x_rot() - new_look_direction.x_rot(); new_delta = new_delta .x_rot(math::to_radians(x_rot_delta as f64) as f32) .y_rot(math::to_radians(y_rot_delta as f64) as f32); -- cgit v1.2.3