mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Added safety measures for invalid mod combinations
This commit is contained in:
@ -641,6 +641,16 @@ namespace osu.Game
|
||||
convertedCommonMods.Add(convertedMod);
|
||||
}
|
||||
|
||||
if (!ModUtils.CheckValidForGameplay(convertedCommonMods, out var invalid))
|
||||
{
|
||||
invalid.ForEach(mod =>
|
||||
{
|
||||
int index = convertedCommonMods.IndexOf(mod);
|
||||
convertedCommonMods.RemoveAt(index);
|
||||
previouslySelectedCommonMods.RemoveAt(index);
|
||||
});
|
||||
}
|
||||
|
||||
if (!SelectedMods.Disabled)
|
||||
// Select common mods to play the deselect samples for other mods
|
||||
SelectedMods.Value = previouslySelectedCommonMods;
|
||||
|
Reference in New Issue
Block a user