mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-23 17:47:35 +01:00
Don't set body yaw if headonly true
This commit is contained in:
parent
3fe2d189f4
commit
71ab3d8dd2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user