minecraft-protocol
Advanced tools
Comparing version 1.9.1 to 1.9.2
# History | ||
## 1.9.2 | ||
* check whether version is supported in server auto version detection | ||
## 1.9.1 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "minecraft-protocol", | ||
"version": "1.9.1", | ||
"version": "1.9.2", | ||
"description": "Parse and serialize minecraft packets, plus authentication and encryption.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -12,3 +12,7 @@ const states = require('../states') | ||
if (version === false || version === undefined) { | ||
client.version = client.protocolVersion | ||
if (require('minecraft-data')(client.protocolVersion)) { | ||
client.version = client.protocolVersion | ||
} else { | ||
client.end('Protocol version ' + client.protocolVersion + ' is not supported') | ||
} | ||
} else if (client.protocolVersion !== server.mcversion.version) { | ||
@@ -15,0 +19,0 @@ client.end('Wrong protocol version, expected: ' + server.mcversion.version + ' and you are using: ' + client.protocolVersion) |
137080
3090