When typing 'exp' in chat, the bot crashes with this error:
TypeError: Cannot read property 'y' of undefined
at Movements.getBlock (/config/workspace/mc_exp_bot/node_modules/mineflayer-pathfinder/lib/movements.js:81:21)
at Movements.safeToBreak (/config/workspace/mc_exp_bot/node_modules/mineflayer-pathfinder/lib/movements.js:101:16)
at Movements.safeOrBreak (/config/workspace/mc_exp_bot/node_modules/mineflayer-pathfinder/lib/movements.js:113:15)
at Movements.getMoveForward (/config/workspace/mc_exp_bot/node_modules/mineflayer-pathfinder/lib/movements.js:178:18)
at Movements.getNeighbors (/config/workspace/mc_exp_bot/node_modules/mineflayer-pathfinder/lib/movements.js:339:12)
at AStar.compute (/config/workspace/mc_exp_bot/node_modules/mineflayer-pathfinder/lib/astar.js:76:40)
at Object.bot.pathfinder.getPathTo (/config/workspace/mc_exp_bot/node_modules/mineflayer-pathfinder/index.js:39:84)
at Bot.monitorMovement (/config/workspace/mc_exp_bot/node_modules/mineflayer-pathfinder/index.js:210:26)
at Bot.emit (events.js:326:22)
at Timeout.doPhysics [as _onTimeout] (/config/workspace/mc_exp_bot/node_modules/mineflayer/lib/plugins/physics.js:62:13)
I have carefull read the error, but can't see how it relates to my code.
I think this is an internal bug, but I don't know.
My full code:
When typing 'exp' in chat, the bot crashes with this error:
I have carefull read the error, but can't see how it relates to my code. I think this is an internal bug, but I don't know.
ENV: ubuntu docker container with node 12