diff options
| author | mat <github@matdoes.dev> | 2022-09-19 21:44:13 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-09-19 21:44:13 -0500 |
| commit | 788e9e875ab1d64441673497076dde8a50a4394c (patch) | |
| tree | e2747160d14a97cbd24164366636cbf77dc88112 /azalea-world/src | |
| parent | 528c1a07e3ac089ff70036a5e403eb2b8d3ae21f (diff) | |
| download | azalea-drasl-788e9e875ab1d64441673497076dde8a50a4394c.tar.xz | |
fix rotations
Diffstat (limited to 'azalea-world/src')
| -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 } |
