PrismarineJS / MineflayerArmorManager

MIT License
24 stars 7 forks source link

Bug with XP #24

Closed MXASoundNDEv closed 1 year ago

MXASoundNDEv commented 3 years ago

Versions

Detailed description of a problem

when it kills a moped and drops an orbit xp it gives me an error message

Error

Failed to retrieve block id, probably exp bottle TypeError: Cannot use 'in' operator to search for 'itemId' in 0 at EventEmitter.onPlayerCollect (D:\dev test\mc bot\node_modules\mineflayer-armor-manager\dist\index.js:35:35) at EventEmitter.emit (node:events:379:20) at Client. (D:\dev test\mc bot\node_modules\mineflayer\lib\plugins\entities.js:159:9) at Client.emit (node:events:379:20) at FullPacketParser. (D:\dev test\mc bot\node_modules\minecraft-protocol\src\client.js:91:12) at FullPacketParser.emit (node:events:379:20) at addChunk (D:\dev test\mc bot\node_modules\readable-stream\lib_stream_readable.js:298:12) at readableAddChunk (D:\dev test\mc bot\node_modules\readable-stream\lib_stream_readable.js:280:11) at FullPacketParser.Readable.push (D:\dev test\mc bot\node_modules\readable-stream\lib_stream_readable.js:241:10) at FullPacketParser.Transform.push (D:\dev test\mc bot\node_modules\readable-stream\lib_stream_transform.js:139:32)

G07cha commented 3 years ago

Are you running the pluggin with logErrors option set to true by any chance?

AhsanIsEpic commented 2 years ago

I believe I fixed this with #36

G07cha commented 1 year ago

Closing as resolved since there was no feedback for quite some time.