update to minecraft-data 2.0.0

This commit is contained in:
Romain Beaumont 2016-05-30 23:10:31 +02:00
parent f07cd78758
commit c6e36d626c
No known key found for this signature in database
GPG key ID: DB60E388B3BCF286
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@
"endian-toggle": "^0.0.0",
"lodash.get": "^4.1.2",
"lodash.merge": "^4.3.0",
"minecraft-data": "^1.4.1",
"minecraft-data": "^2.0.0",
"prismarine-nbt": "^1.0.0",
"protodef": "^1.2.3",
"readable-stream": "^2.0.5",

View file

@ -33,7 +33,7 @@ module.exports = function(client, options) {
minecraftVersion = brandedMinecraftVersion;
}
const versionInfo = minecraft_data.versionsByMinecraftVersion[minecraftVersion];
const versionInfo = minecraft_data.versionsByMinecraftVersion[minecraftVersion]["pc"];
if (!versionInfo) throw new Error(`unsupported/unknown protocol version: ${protocolVersion}, update minecraft-data`);
options.version = minecraftVersion;