Closed OscarNOW closed 1 year ago
Update your dependencies.
npm update --depth 9999
in my case even tho I use 1.16.5
, that bug is because minecraft-data
from mineflayer is not up-to-date and doesn't contain 1.19 features like dimensionDataInCodec
while here https://github.com/PrismarineJS/mineflayer/blob/master/lib/plugins/game.js#L43 it does
@Sceat that's a problem on your side. mineflayer does not use a fixed version of mcdata
Indeed, I was using a earlier protocol version for typings compatibility and it caused mineflayer to have it's own version of the protocol but not of the datas, which kept using my own. I ended up bumping everything and i'll deal with the typings
Versions
Detailed description of a problem
When joining the bot to my 1.16.3 server, the bot produces an error.
Your current code
Expected behavior
No error.
Possible issues in mineflayer code
I've looked around in the mineflayer code and I think I've found the problem. In
/lib/plugins/game.js:43
:the code is checking if the
dimensionDataInCodec
feature is supported, but in@minecraft-data/data/pc/common/features.json
there is nodimensionDataInCodec
feature.