Merge pull request #755 from GroobleDierne/pingFails

Fix #642
This commit is contained in:
Romain Beaumont 2020-08-09 11:58:40 +02:00 committed by GitHub
commit 7f61d65e33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ module.exports = function (client, server, { version }) {
} else {
client.end('Protocol version ' + client.protocolVersion + ' is not supported')
}
} else if (client.protocolVersion !== server.mcversion.version) {
} else if (client.protocolVersion !== server.mcversion.version && packet.nextState !== 1) {
client.end('Wrong protocol version, expected: ' + server.mcversion.version + ' and you are using: ' + client.protocolVersion)
}