diff --git a/package.json b/package.json index 2f6a3d0..37dc2c4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/client/autoVersion.js b/src/client/autoVersion.js index 9cc4cbd..13c38c2 100644 --- a/src/client/autoVersion.js +++ b/src/client/autoVersion.js @@ -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;