1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 05:22:54 +08:00

Use score.User.OnlineID instead of score.UserID

You'd hope that they'd be the same thing, but
post-https://github.com/ppy/osu-server-spectator/pull/230 it turns out
that cannot be guaranteed, so just attempt to use `User` in the encoder
consistently everywhere...
This commit is contained in:
Bartłomiej Dach 2024-05-06 16:29:03 +02:00
parent abfb2c00bc
commit 9c6968c13a
No known key found for this signature in database

View File

@ -54,7 +54,7 @@ namespace osu.Game.Scoring.Legacy
MaximumStatistics = score.MaximumStatistics.Where(kvp => kvp.Value != 0).ToDictionary(),
ClientVersion = score.ClientVersion,
Rank = score.Rank,
UserID = score.UserID,
UserID = score.User.OnlineID,
};
}
}