Implement lookToIncrement setting

This commit is contained in:
0xf8 2023-06-08 17:02:18 -04:00
parent b8f3788f32
commit 7a7bf60d6d
Signed by: 0xf8
GPG Key ID: 446580D758689584

View File

@ -123,7 +123,7 @@ public final class LookBehavior extends Behavior implements ILookBehavior {
float dy = desiredYaw - ctx.player().rotationYaw;
float dp = desiredPitch - ctx.player().rotationPitch;
float inc = 6; // TODO: make this a setting
float inc = Baritone.settings().lookToIncrement.value;
if (dy > -inc && dy < inc) {
ctx.player().rotationYaw += dy;