Mineflayer latency with bot.equip function #2892
Unanswered
random-logic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I sometimes get "Error: must be holding an item to place" when I call await bot.placeBlock function right after I called await bot.equip on the correct block. This error only happens when I play on servers, which makes me think that this is happening due to the latency (from my understanding it tries to placeBlock before it equips successfully). I am already using promises with these two functions, and I have tried waiting for milliseconds and physics ticks in between these two, but the error still happens. Any idea how to account for latency?
Beta Was this translation helpful? Give feedback.
All reactions