Add toggle to head movement while walking (#1805)

* Add toggle to head movement while walking

* correct typo

* Correcting the correcting

* Improve description.

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
This commit is contained in:
Daenges 2021-10-29 06:45:30 +02:00 committed by GitHub
parent 8de7618027
commit 6928cd40fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -348,7 +348,11 @@ namespace MinecraftClient
{
Location next = path.Dequeue();
steps = Movement.Move2Steps(location, next, ref motionY);
UpdateLocation(location, next + new Location(0, 1, 0)); // Update yaw and pitch to look at next step
if (Settings.MoveHeadWhileWalking) // Disable head movements to avoid anti-cheat triggers
{
UpdateLocation(location, next + new Location(0, 1, 0)); // Update yaw and pitch to look at next step
}
}
else
{