1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 16:12:54 +08:00

Fill out username from user ids, rather than user ids from user ids

This commit is contained in:
Dean Herbert 2018-11-09 16:11:12 +09:00
parent 0be2f5ac94
commit 1c6c598644

View File

@ -107,7 +107,7 @@ namespace osu.Game.Tournament
// add full player info based on user IDs
foreach (var t in Ladder.Teams)
foreach (var p in t.Players)
if (p.Id == 1)
if (string.IsNullOrEmpty(p.Username))
{
var req = new GetUserRequest(p.Id);
req.Success += i => p.Username = i.Username;