From 9519944692f7381734c3e3f63dae62cbf08c23bd Mon Sep 17 00:00:00 2001 From: extremeheat Date: Mon, 6 Jan 2025 08:06:23 +0000 Subject: [PATCH] fix client.._supportFeature not being defined --- src/client.js | 1 + src/createClient.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.js b/src/client.js index 5b63c295..74749698 100644 --- a/src/client.js +++ b/src/client.js @@ -30,6 +30,7 @@ class Client extends EventEmitter { this.hideErrors = hideErrors this.closeTimer = null const mcData = require('minecraft-data')(version) + this._supportFeature = mcData.supportFeature this.state = states.HANDSHAKING this._hasBundlePacket = mcData.supportFeature('hasBundlePacket') } diff --git a/src/createClient.js b/src/createClient.js index 137fd2a4..912e331e 100644 --- a/src/createClient.js +++ b/src/createClient.js @@ -36,7 +36,6 @@ function createClient (options) { const client = new Client(false, version.minecraftVersion, options.customPackets, hideErrors) - client._supportFeature = mcData.supportFeature tcpDns(client, options) if (options.auth instanceof Function) { options.auth(client, options)