mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:33:20 +08:00
fix linq logic
This commit is contained in:
parent
6af30a3d45
commit
fe30ca3d39
@ -55,8 +55,10 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
protected override void Select()
|
||||
{
|
||||
var selectedSystemMods = selectedMods.Value.Where(mod => mod.Type == ModType.System
|
||||
&& !mod.IncompatibleMods.Any(t => Preset.Value.Mods.Any(m => m.GetType() == t)));
|
||||
var selectedSystemMods = selectedMods.Value.Where(mod => mod.Type == ModType.System &&
|
||||
!mod.IncompatibleMods.Any(t => Preset.Value.Mods.Any(t.IsInstanceOfType)));
|
||||
|
||||
|
||||
// will also have the side effect of activating the preset (see `updateActiveState()`).
|
||||
selectedMods.Value = Preset.Value.Mods.Concat(selectedSystemMods).ToArray();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user