From 9847623b254d8151e38e9bc6a6157c82ba6941a3 Mon Sep 17 00:00:00 2001 From: 7cc5c4f330d47060 Date: Thu, 12 Sep 2024 00:17:46 -0400 Subject: [PATCH] Add protocol version getter --- util/getProtocolVersion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/getProtocolVersion.js b/util/getProtocolVersion.js index 0f3cd6b..a350240 100644 --- a/util/getProtocolVersion.js +++ b/util/getProtocolVersion.js @@ -1,4 +1,4 @@ const mcd=require("minecraft-data") module.exports = function (ver) { - return require("minecraft-data").versionsByMinecraftVersion.pc[ver].version + return mcd.versionsByMinecraftVersion.pc[ver].version }