1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-23 19:07:20 +08:00

Actually populate the playlist item

This commit is contained in:
smoogipoo 2021-01-27 22:23:38 +09:00
parent 45e41aaeac
commit 4c256f1fb3

View File

@ -62,6 +62,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
initialRuleset = Ruleset.Value;
initialMods = Mods.Value.ToList();
freeModSelectOverlay.SelectedMods.Value = playlist.FirstOrDefault()?.AllowedMods.Select(m => m.CreateCopy()).ToList();
FooterPanels.Add(freeModSelectOverlay);
}
@ -76,6 +77,9 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
item.RequiredMods.Clear();
item.RequiredMods.AddRange(Mods.Value.Select(m => m.CreateCopy()));
item.AllowedMods.Clear();
item.AllowedMods.AddRange(freeModSelectOverlay.SelectedMods.Value.Select(m => m.CreateCopy()));
// If the client is already in a room, update via the client.
// Otherwise, update the playlist directly in preparation for it to be submitted to the API on match creation.
if (client.Room != null)