little cleanup

This commit is contained in:
Leijurv
2019-03-20 23:06:14 -07:00
parent 04ff365890
commit cac653ddd9
2 changed files with 4 additions and 4 deletions

View File

@@ -72,8 +72,8 @@ public final class LookBehavior extends Behavior implements ILookBehavior {
float oldPitch = ctx.player().rotationPitch;
float desiredPitch = this.target.getPitch();
ctx.player().rotationPitch = desiredPitch;
if (desiredPitch == oldPitch) {
//nudgeToLevel();
if (desiredPitch == oldPitch && Baritone.settings().freeLook.value) {
nudgeToLevel();
}
this.target = null;
}