mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
Select mods via exact types
This commit is contained in:
parent
ed38b589bb
commit
94834e4920
@ -132,7 +132,7 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
foreach (var button in buttons)
|
||||
{
|
||||
int i = Array.FindIndex(button.Mods, m => modTypes.Any(t => t.IsInstanceOfType(m)));
|
||||
int i = Array.FindIndex(button.Mods, m => modTypes.Any(t => t == m.GetType()));
|
||||
|
||||
if (i >= 0)
|
||||
button.SelectAt(i);
|
||||
|
Loading…
Reference in New Issue
Block a user