Skip to content

Commit

Permalink
fix client.._supportFeature not being defined
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat committed Jan 6, 2025
1 parent f6db87d commit 9519944
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/client.js
Original file line number Diff line number Diff line change
@@ -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')
}
1 change: 0 additions & 1 deletion src/createClient.js
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 9519944

Please sign in to comment.