PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
4.96k stars 904 forks source link

Error causing bot to crash #677

Closed crzassassin closed 5 years ago

crzassassin commented 6 years ago

TypeError: Cannot read property 'id' of undefined at confirmTransaction (C:\Users\Aiden\Desktop\testing\node_modules\mineflayer\lib\plugins\inventory.js:390:21) at Client.bot._client.on (C:\Users\Aiden\Desktop\testing\node_modules\mineflayer\lib\plugins\inventory.js:502:5) at Client.emit (events.js:182:13) at FullPacketParser.deserializer.on (C:\Users\Aiden\Desktop\testing\node_modules\minecraft-protocol\src\client.js:81:12) at FullPacketParser.emit (events.js:182:13) at addChunk (C:\Users\Aiden\Desktop\testing\node_modules\readable-stream\lib_stream_readable.js:291:12) at readableAddChunk (C:\Users\Aiden\Desktop\testing\node_modules\readable-stream\lib_stream_readable.js:278:11) at FullPacketParser.Readable.push (C:\Users\Aiden\Desktop\testing\node_modules\readable-stream\lib_stream_readable.js:245:10) at FullPacketParser.Transform.push (C:\Users\Aiden\Desktop\testing\node_modules\readable-stream\lib_stream_transform.js:148:32) at FullPacketParser._transform (C:\Users\Aiden\Desktop\testing\node_modules\protodef\src\serializer.js:85:10)

rom1504 commented 6 years ago

Any clue when that happens ? (how to reproduce)

On Wed, Jun 20, 2018 at 1:00 PM crzassassin notifications@github.com wrote:

TypeError: Cannot read property 'id' of undefined at confirmTransaction (C:\Users\Aiden\Desktop\testing\node_modules\mineflayer\lib\plugins\inventory.js:390:21) at Client.bot._client.on (C:\Users\Aiden\Desktop\testing\node_modules\mineflayer\lib\plugins\inventory.js:502:5) at Client.emit (events.js:182:13) at FullPacketParser.deserializer.on (C:\Users\Aiden\Desktop\testing\node_modules\minecraft-protocol\src\client.js:81:12) at FullPacketParser.emit (events.js:182:13) at addChunk (C:\Users\Aiden\Desktop\testing\node_modules\readable-stream\lib_stream_readable.js:291:12) at readableAddChunk (C:\Users\Aiden\Desktop\testing\node_modules\readable-stream\lib_stream_readable.js:278:11) at FullPacketParser.Readable.push (C:\Users\Aiden\Desktop\testing\node_modules\readable-stream\lib_stream_readable.js:245:10) at FullPacketParser.Transform.push (C:\Users\Aiden\Desktop\testing\node_modules\readable-stream\lib_stream_transform.js:148:32) at FullPacketParser._transform (C:\Users\Aiden\Desktop\testing\node_modules\protodef\src\serializer.js:85:10)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/mineflayer/issues/677, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPN_iUw36vpPesUIb8aAlteb20iU4e5ks5t-itSgaJpZM4UvDl2 .

crzassassin commented 6 years ago

well, make it join a 1.12.2 server, and throw an item at it.

rom1504 commented 6 years ago

What kind of 1.12.2 server ? Vanilla ? Spigot ?

On Wed, Jun 20, 2018, 13:50 crzassassin notifications@github.com wrote:

well, make it join a 1.12.2 server, and throw an item at it.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/mineflayer/issues/677#issuecomment-398721927, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPN_ogBYP3tsaPkQ7T6XA9lnln-XoMtks5t-jb4gaJpZM4UvDl2 .

crzassassin commented 6 years ago

spigot specifically paper 1.12.2

rom1504 commented 5 years ago

now fixed