1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 07:09:53 +08:00

Add note about reasoning behind MultiplayerClient.GetAPIBeatmap call

This commit is contained in:
Dean Herbert
2021-12-13 13:39:32 +09:00
Unverified
parent 3ea07b426b
commit c097dc8048
@@ -166,6 +166,8 @@ namespace osu.Game.Screens.OnlinePlay
IBeatmapInfo foundBeatmap;
if (multiplayerClient != null)
// This call can eventually go away (and use the else case below).
// Currently required only due to the method being overridden to provide special behaviour in tests.
foundBeatmap = await multiplayerClient.GetAPIBeatmap(Item.BeatmapID).ConfigureAwait(false);
else
foundBeatmap = await beatmapLookupCache.GetBeatmapAsync(Item.BeatmapID).ConfigureAwait(false);