mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-05 03:00:46 +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', {
|
||||||
player._client.write('player_info', {
|
action: 0,
|
||||||
action: 0,
|
data: serv.players.map((otherPlayer) => ({
|
||||||
data: [{
|
UUID: otherPlayer._client.uuid,
|
||||||
UUID: otherPlayer._client.uuid,
|
name: otherPlayer.username,
|
||||||
name: otherPlayer.username,
|
properties: [],
|
||||||
properties: [],
|
gamemode: otherPlayer.gameMode,
|
||||||
gamemode: otherPlayer.gameMode,
|
ping: 1
|
||||||
ping: 1
|
}))
|
||||||
}]
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue