mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-28 18:26:10 -05:00
fix autoversion.js
This commit is contained in:
parent
3ecc89b507
commit
75c17f0318
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue