1
0
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:
smoogipoo 2020-07-15 19:35:52 +09:00
parent ed38b589bb
commit 94834e4920

View File

@ -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);