diff options
| author | mat <git@matdoes.dev> | 2025-08-12 10:47:33 +1000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-08-12 07:47:38 +0700 |
| commit | 29c32c9ba89d60b5b0e415eaab58b947080655c5 (patch) | |
| tree | ce7a6291aa83409f86037f264c7053450ce6dd1d /azalea-protocol/src/common | |
| parent | 7d9dee7a4dcf7e2b41bee37d2aebaa6ef48a5ba2 (diff) | |
| download | azalea-drasl-29c32c9ba89d60b5b0e415eaab58b947080655c5.tar.xz | |
fix rotations flagging anticheats
Diffstat (limited to 'azalea-protocol/src/common')
| -rw-r--r-- | azalea-protocol/src/common/movements.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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); |
