Don't set body yaw if headonly true

This commit is contained in:
fullwall 2023-05-02 02:28:23 +08:00
parent 3fe2d189f4
commit 71ab3d8dd2
1 changed files with 3 additions and 1 deletions

View File

@ -496,7 +496,9 @@ public class RotationTrait extends Trait {
if (Math.abs(rot.pitch - getTargetPitch()) + Math.abs(rot.headYaw - getTargetYaw()) < 0.1) {
t = -1;
rot.bodyYaw = rot.headYaw;
if (!params.headOnly) {
rot.bodyYaw = rot.headYaw;
}
}
rot.apply();