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', {
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 }))
}]
});
}); });
} }