mineflayer-web-inventory icon indicating copy to clipboard operation
mineflayer-web-inventory copied to clipboard

Error with items

Open FreshImmuc opened this issue 7 months ago • 0 comments

I get this error whenever i open the web ui of the bot:

TypeError: Cannot read properties of undefined (reading 'cooked_beef')
    at addItemData (<REDACTED>/mineflayer-web-inventory/utils.js:82:46)
    at update (<REDACTED>/mineflayer-web-inventory/index.js:139:19)
    at Window.<anonymous> (<REDACTED>/mineflayer-web-inventory/index.js:146:64)
    at Window.emit (node:events:520:28)
    at Window.updateSlot (<REDACTED>/prismarine-windows/lib/Window.js:291:12)
    at bot._setSlot (<REDACTED>/mineflayer/lib/plugins/inventory.js:721:12)
    at Client.<anonymous> (<REDACTED>/mineflayer/lib/plugins/inventory.js:729:9)
    at Client.emit (node:events:532:35)
    at emitPacket (<REDACTED>/minecraft-protocol/src/client.js:84:12)
    at FullPacketParser.<anonymous> (<REDACTED>/minecraft-protocol/src/client.js:113:9)

This also happens with other items, for example, chainmail_helmet:

TypeError: Cannot read properties of undefined (reading 'cooked_beef')
    at addItemData (<REDACTED>/mineflayer-web-inventory/utils.js:82:46)
    at update (<REDACTED>/mineflayer-web-inventory/index.js:139:19)
    at Window.<anonymous> (<REDACTED>/mineflayer-web-inventory/index.js:146:64)
    at Window.emit (node:events:520:28)
    at Window.updateSlot (<REDACTED>/prismarine-windows/lib/Window.js:291:12)
    at bot._setSlot (<REDACTED>/mineflayer/lib/plugins/inventory.js:721:12)
    at Client.<anonymous> (<REDACTED>/mineflayer/lib/plugins/inventory.js:729:9)
    at Client.emit (node:events:532:35)
    at emitPacket (<REDACTED>/minecraft-protocol/src/client.js:84:12)
    at FullPacketParser.<anonymous> (<REDACTED>/minecraft-protocol/src/client.js:113:9)

FreshImmuc avatar May 12 '25 14:05 FreshImmuc