mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-12 02:51:22 +00:00
send only one player_info packet, now that the problem has been solved: don't send the displayName
This commit is contained in:
parent
710473b926
commit
cf7b1e8fe5
1 changed files with 10 additions and 11 deletions
|
|
@ -165,18 +165,17 @@ function inject(serv,player)
|
|||
}]
|
||||
});
|
||||
|
||||
serv.players.map((otherPlayer) => {
|
||||
player._client.write('player_info', {
|
||||
action: 0,
|
||||
data: [{
|
||||
UUID: otherPlayer._client.uuid,
|
||||
name: otherPlayer.username,
|
||||
properties: [],
|
||||
gamemode: otherPlayer.gameMode,
|
||||
ping: 1
|
||||
}]
|
||||
});
|
||||
player._client.write('player_info', {
|
||||
action: 0,
|
||||
data: serv.players.map((otherPlayer) => ({
|
||||
UUID: otherPlayer._client.uuid,
|
||||
name: otherPlayer.username,
|
||||
properties: [],
|
||||
gamemode: otherPlayer.gameMode,
|
||||
ping: 1
|
||||
}))
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue