Add clarification comment

This commit is contained in:
Bartłomiej Dach 2024-05-06 08:49:30 +02:00
parent 1f92f1d19b
commit 4c7e6b125c
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ protected override void LoadComplete()
protected override void Select()
{
// this implicitly presumes that if a system mod declares incompatibility with a non-system mod,
// the non-system mod should take precedence.
// if this assumption is ever broken, this should be reconsidered.
var selectedSystemMods = selectedMods.Value.Where(mod => mod.Type == ModType.System &&
!mod.IncompatibleMods.Any(t => Preset.Value.Mods.Any(t.IsInstanceOfType)));