node-minecraft-protocol
node-minecraft-protocol copied to clipboard
Fix handling of disconnect in versionChecking on 1.20.3+.
This fixes the versionChecking code catching disconnects from states other then Handshake and Login, which cause errors on 1.20.3+ where NBT chat is used for the Play and Configuration state.
Since version checking only occurs in Handshake / Login state its best not to do anything when those other states occur.
This also includes a fix for the translate string having changed for when you have a version miss match.