Skip to content

Look sync fix#3891

Open
GenerelSchwerz wants to merge 2 commits intoPrismarineJS:masterfrom
GenerelSchwerz:look-sync-fix
Open

Look sync fix#3891
GenerelSchwerz wants to merge 2 commits intoPrismarineJS:masterfrom
GenerelSchwerz:look-sync-fix

Conversation

@GenerelSchwerz
Copy link
Copy Markdown
Contributor

Update look sync to:

  1. be stricter on pitch changes as well.
  2. warn the user if multiple bot.look calls are being made at the same time, as simply returning completion leaves the end result ambiguous. Ideally, we'd throw an error instead to dissuade bad coding practice, but that feels too opinionated.

Implementation based on: https://github.com/nxg-org/mineflayer-util-plugin/blob/master/src/movementFunctions.ts , where this code does correctly sync sent packet data and expected look return timing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant