diff options
Diffstat (limited to 'azalea-world/src/entity')
| -rw-r--r-- | azalea-world/src/entity/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-world/src/entity/mod.rs b/azalea-world/src/entity/mod.rs index 7c3e3873..b190d63e 100644 --- a/azalea-world/src/entity/mod.rs +++ b/azalea-world/src/entity/mod.rs @@ -113,8 +113,8 @@ impl<'d> EntityMut<'d> { } pub fn set_rotation(&mut self, y_rot: f32, x_rot: f32) { - self.y_rot = y_rot.clamp(-90.0, 90.0) % 360.0; - self.x_rot = x_rot % 360.0; + self.y_rot = y_rot % 360.0; + self.x_rot = x_rot.clamp(-90.0, 90.0) % 360.0; // TODO: minecraft also sets yRotO and xRotO to xRot and yRot ... but idk what they're used for so } |
