Skip to content

Commit

Permalink
Update play.js
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat authored Dec 24, 2024
1 parent 4905ca9 commit 9170115
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ module.exports = function (client, options) {
}

function onReady () {
client.emit('playerJoin')
if (mcData.supportFeature('signedChat')) {
if (options.disableChatSigning && client.serverFeatures.enforcesSecureChat) {
throw new Error('"disableChatSigning" was enabled in client options, but server is enforcing secure chat')
Expand All @@ -86,8 +85,8 @@ module.exports = function (client, options) {
function unsignedChat (message) {
client.write('chat', { message })
}

client.chat = client._signedChat || unsignedChat
client.emit('playerJoin')
}
}
}

0 comments on commit 9170115

Please sign in to comment.