mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 18:03:11 +08:00
Fix error when entering multiplayer game in different ruleset (#7191)
Fix error when entering multiplayer game in different ruleset
This commit is contained in:
commit
e96723434c
@ -249,7 +249,8 @@ namespace osu.Game
|
|||||||
foreach (ModType type in Enum.GetValues(typeof(ModType)))
|
foreach (ModType type in Enum.GetValues(typeof(ModType)))
|
||||||
dict[type] = r.NewValue?.CreateInstance().GetModsFor(type).ToList();
|
dict[type] = r.NewValue?.CreateInstance().GetModsFor(type).ToList();
|
||||||
|
|
||||||
SelectedMods.Value = Array.Empty<Mod>();
|
if (!SelectedMods.Disabled)
|
||||||
|
SelectedMods.Value = Array.Empty<Mod>();
|
||||||
AvailableMods.Value = dict;
|
AvailableMods.Value = dict;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user