mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
commit
7f61d65e33
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ module.exports = function (client, server, { version }) {
|
||||||
} else {
|
} else {
|
||||||
client.end('Protocol version ' + client.protocolVersion + ' is not supported')
|
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)
|
client.end('Wrong protocol version, expected: ' + server.mcversion.version + ' and you are using: ' + client.protocolVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue