mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 22:23:21 -04:00
update to minecraft-data 2.0.0
This commit is contained in:
parent
f07cd78758
commit
c6e36d626c
@ -47,7 +47,7 @@
|
|||||||
"endian-toggle": "^0.0.0",
|
"endian-toggle": "^0.0.0",
|
||||||
"lodash.get": "^4.1.2",
|
"lodash.get": "^4.1.2",
|
||||||
"lodash.merge": "^4.3.0",
|
"lodash.merge": "^4.3.0",
|
||||||
"minecraft-data": "^1.4.1",
|
"minecraft-data": "^2.0.0",
|
||||||
"prismarine-nbt": "^1.0.0",
|
"prismarine-nbt": "^1.0.0",
|
||||||
"protodef": "^1.2.3",
|
"protodef": "^1.2.3",
|
||||||
"readable-stream": "^2.0.5",
|
"readable-stream": "^2.0.5",
|
||||||
|
@ -33,7 +33,7 @@ module.exports = function(client, options) {
|
|||||||
minecraftVersion = brandedMinecraftVersion;
|
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`);
|
if (!versionInfo) throw new Error(`unsupported/unknown protocol version: ${protocolVersion}, update minecraft-data`);
|
||||||
|
|
||||||
options.version = minecraftVersion;
|
options.version = minecraftVersion;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user