Is there a step that needs to be done first before a bot can sleep in a bed?
TypeError: Cannot read property 'id' of undefined
at new SlotWriter (/home/halkeye/git/minecraft reporter/node_modules/mineflayer/node_modules/minecraft-protocol/lib/protocol.j
s:1024:20)
at /home/halkeye/git/minecraft-reporter/node_modules/mineflayer/node_modules/minecraft-protocol/lib/protocol.js:1182:17
at Array.forEach (native)
at createPacketBuffer (/home/halkeye/git/minecraft-reporter/node_modules/mineflayer/node_modules/minecraft-protocol/lib/protoc
ol.js:1178:10)
at Client.write (/home/halkeye/git/minecraft-reporter/node_modules/mineflayer/node_modules/minecraft-protocol/lib/client.js:63
:16)
at Bot.bot.sleep (/home/halkeye/git/minecraft-reporter/node_modules/mineflayer/lib/plugins/bed.js:12:16) at Bot. (/home/halkeye/git/minecraft-reporter/index.js:42:7)
Is there a step that needs to be done first before a bot can sleep in a bed?
TypeError: Cannot read property 'id' of undefined at new SlotWriter (/home/halkeye/git/minecraft reporter/node_modules/mineflayer/node_modules/minecraft-protocol/lib/protocol.j s:1024:20) at /home/halkeye/git/minecraft-reporter/node_modules/mineflayer/node_modules/minecraft-protocol/lib/protocol.js:1182:17 at Array.forEach (native) at createPacketBuffer (/home/halkeye/git/minecraft-reporter/node_modules/mineflayer/node_modules/minecraft-protocol/lib/protoc ol.js:1178:10) at Client.write (/home/halkeye/git/minecraft-reporter/node_modules/mineflayer/node_modules/minecraft-protocol/lib/client.js:63 :16) at Bot.bot.sleep (/home/halkeye/git/minecraft-reporter/node_modules/mineflayer/lib/plugins/bed.js:12:16) at Bot. (/home/halkeye/git/minecraft-reporter/index.js:42:7)