Closed aloualou56 closed 2 years ago
That's probably caused by bot.equip
, what's your code, maybe you're passing a null object to bot.equip
my code is:
That really is understandable, thanks. Maybe it's this
await _this.bot.equip(item, destination);
Thanks for the reply, I will try your suggestion!
Versions
Detailed description of a problem
A bug?
What did you try yet?
Did you try any method from the API? Did you try any example? Any error from those?
Your current code
Expected behavior
break the block
Additional context
the invalid item was the hand. The bot didn't had anything in its inventory