From 788e9e875ab1d64441673497076dde8a50a4394c Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 19 Sep 2022 21:44:13 -0500 Subject: fix rotations --- azalea-world/src/entity/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-world/src/entity') 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 } -- cgit v1.2.3