send only one player_info packet, now that the problem has been solved: don't send the displayName

This commit is contained in:
Romain Beaumont 2015-10-14 18:58:28 +02:00
parent 710473b926
commit cf7b1e8fe5

View file

@ -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
}))
});
}