mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 21:53:22 +08:00
Fix classic hotkeys toggling filtered mods
This commit is contained in:
parent
a996325e19
commit
9e5cc89edb
@ -42,7 +42,7 @@ namespace osu.Game.Overlays.Mods.Input
|
|||||||
if (!mod_type_lookup.TryGetValue(e.Key, out var typesToMatch))
|
if (!mod_type_lookup.TryGetValue(e.Key, out var typesToMatch))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var matchingMods = availableMods.Where(modState => matches(modState, typesToMatch)).ToArray();
|
var matchingMods = availableMods.Where(modState => matches(modState, typesToMatch) && !modState.Filtered.Value).ToArray();
|
||||||
|
|
||||||
if (matchingMods.Length == 0)
|
if (matchingMods.Length == 0)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user