mirror of
https://github.com/cabaletta/baritone
synced 2024-12-17 20:55:09 +00:00
Clamp pitch to normal range
This commit is contained in:
parent
24b0bd2edf
commit
15f4253b3d
@ -202,7 +202,7 @@ public final class LookBehavior extends Behavior implements ILookBehavior {
|
||||
return new Rotation(
|
||||
this.calculateMouseMove(prev.getYaw(), desiredYaw),
|
||||
this.calculateMouseMove(prev.getPitch(), desiredPitch)
|
||||
);
|
||||
).clamp();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user