mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-02-17 08:10:18 -05:00
Fix client sending chat_session_update when local UUID does not match UUID on server (#1237)
Co-authored-by: Frej Alexander Nielsen <frej@valoks.com>
This commit is contained in:
parent
05e5a701f0
commit
5a64f14359
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ module.exports = function (client, options) {
|
|||
|
||||
client.once('login', () => {
|
||||
const mcData = require('minecraft-data')(client.version)
|
||||
if (mcData.supportFeature('useChatSessions') && client.profileKeys && client.cipher) {
|
||||
if (mcData.supportFeature('useChatSessions') && client.profileKeys && client.cipher && client.session.selectedProfile.id === client.uuid.replace(/-/g, '')) {
|
||||
client._session = {
|
||||
index: 0,
|
||||
uuid: uuid.v4fast()
|
||||
|
|
Loading…
Reference in a new issue