mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
run standard 1.12 --fix
This commit is contained in:
parent
6988345f98
commit
b1ba01ed3c
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ client.on('chat', function (packet) {
|
|||
const username = jsonMsg.with[0].text
|
||||
const msg = jsonMsg.with[1]
|
||||
if (username === client.username) return
|
||||
if (msg.text) client.write('chat', { message: msg.text})
|
||||
else client.write('chat', { message: msg})
|
||||
if (msg.text) client.write('chat', { message: msg.text })
|
||||
else client.write('chat', { message: msg })
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue