This commit is contained in:
Brady 2023-06-25 15:32:02 -07:00
parent 9d1addd114
commit 9bd0856445
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ public final class LookBehavior extends Behavior implements ILookBehavior {
// Reset the player's rotations back to their original values
if (this.prevRotation != null) {
if (Baritone.settings().smoothLook.value) {
this.smoothYawBuffer.add(this.target.rotation.getYaw());
ctx.player().rotationYaw = (float) this.smoothYawBuffer.stream()
.mapToDouble(d -> d).average().orElseGet(this.prevRotation::getYaw);
ctx.player().rotationPitch = this.prevRotation.getPitch();