Fix #1369 online-mode error 1.20.5-1.21.4 (#1375)

This commit is contained in:
h5mcbox 2025-02-22 15:01:47 +08:00 committed by GitHub
parent e9eb551ba3
commit 5ec3dd4b36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,7 +98,8 @@ module.exports = function (client, server, options) {
client.write('encryption_begin', {
serverId,
publicKey: client.publicKey,
verifyToken: client.verifyToken
verifyToken: client.verifyToken,
shouldAuthenticate: true
})
} else {
loginClient()