link-discord / mineflayer-auto-eat

Auto eat plugin for mineflayer
https://www.npmjs.com/package/mineflayer-auto-eat
MIT License
33 stars 4 forks source link

Error: no food found #5

Closed SinanAkkoyun closed 3 years ago

SinanAkkoyun commented 3 years ago
Error: No food found.
    at eat (/mnt/c/Users/Sinan/node_modules/mineflayer-auto-eat/index.js:42:29)
    at EventEmitter.<anonymous> (/mnt/c/Users/Sinan/node_modules/mineflayer-auto-eat/index.js:110:17)
    at EventEmitter.emit (events.js:327:22)
    at Client.<anonymous> (/mnt/c/Users/Sinan/node_modules/mineflayer/lib/plugins/health.js:21:9)
    at Client.emit (events.js:327:22)
    at FullPacketParser.<anonymous> (/mnt/c/Users/Sinan/node_modules/minecraft-protocol/src/client.js:91:12)
    at FullPacketParser.emit (events.js:315:20)
    at addChunk (/mnt/c/Users/Sinan/node_modules/protodef/node_modules/readable-stream/lib/_stream_readable.js:298:12)
    at readableAddChunk (/mnt/c/Users/Sinan/node_modules/protodef/node_modules/readable-stream/lib/_stream_readable.js:280:11)
    at FullPacketParser.Readable.push (/mnt/c/Users/Sinan/node_modules/protodef/node_modules/readable-stream/lib/_stream_readable.js:241:10)

Please make it silent or tell me how I can, just a try catch?

link-discord commented 3 years ago

This issue should be fixed now