Closed ghost closed 2 years ago
the examples are only expected to work for the latest version of mc, you can try seeing when 1.9 came out and find the last commit before that and use that code.
1.8 doesn't have a loginPacket
json, because 1.8 doesn't support any of the fields the loginPacket
json is necessary for. Your login packet is structured incorrectly for 1.8, missing levelType
and difficulty
and including many fields that don't exist.
NMP is not a protocol-agnostic framework like mineflayer or flying-squid, you must understand the protocol and the packets you're writing. Not a bug, recommend closing.
https://github.com/PrismarineJS/flying-squid/blob/debb5fa6b800babfb62d29384a90e420522092ce/src/lib/plugins/login.js#L85 is how to send login whatever the version
[ ] The FAQ doesn't contain a resolution to my issue
Versions
Detailed description of a problem
A clear and concise description of what the problem is.
Current code
Expected behavior
A clear and concise description of what you expected to happen. loginPackets not to be undefiened
Additional context
Add any other context about the problem here.