mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-10-02 23:52:07 -04:00
run standard 1.12 --fix
This commit is contained in:
parent
6988345f98
commit
b1ba01ed3c
@ -27,7 +27,7 @@ client.on('chat', function (packet) {
|
|||||||
const username = jsonMsg.with[0].text
|
const username = jsonMsg.with[0].text
|
||||||
const msg = jsonMsg.with[1]
|
const msg = jsonMsg.with[1]
|
||||||
if (username === client.username) return
|
if (username === client.username) return
|
||||||
if (msg.text) client.write('chat', { message: msg.text})
|
if (msg.text) client.write('chat', { message: msg.text })
|
||||||
else client.write('chat', { message: msg})
|
else client.write('chat', { message: msg })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user