-
-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR bot.fish() ! #3456
Comments
This is not a bug in mineflayer. If you would like help writing code please go to the Mineflayer Forums.
Corrected code
|
Hello yes the code is working properly thank you! it worked 5-6 times and then stopped, why did such a thing happen, is it related to the server, I wonder? |
Did it give an error message or just stop with its line out/in? |
The system doesn't give an error, it holds 6 to 5 items and then releases them. |
What's really the problem ?
\node_modules\mineflayer\lib\plugins\fishing.js:45
fishingTask.cancel(new Error('Fishing cancelled due to calling bot.fish() again'))
^
Error: Fishing cancelled due to calling bot.fish() again
at EventEmitter.fish (C:\Users\Desktop\MFishBot\node_modules\mineflayer\lib\plugins\fishing.js:45:26)
at Timeout.startFishing [as _onTimeout] (C:\Users\bekta\Desktop\MFishBot\index.js:55:7)
at listOnTimeout (node:internal/timers:581:17)
at process.processTimers (node:internal/timers:519:7)
The text was updated successfully, but these errors were encountered: