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)