fix autoversion.js

This commit is contained in:
Romain Beaumont 2016-06-09 01:29:02 +02:00
parent 3ecc89b507
commit 75c17f0318
No known key found for this signature in database
GPG key ID: DB60E388B3BCF286

View file

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