Fix a weird age-old bug apparently?

This commit is contained in:
Ottermandias 2024-05-24 16:14:48 +02:00
parent 125e5628ec
commit 65627b5002

View file

@ -274,17 +274,17 @@ public class CollectionCacheManager : IDisposable
return;
}
type.HandlingInfo(out _, out var recomputeList, out var reload);
type.HandlingInfo(out _, out var recomputeList, out var justAdd);
if (!recomputeList)
return;
foreach (var collection in _storage.Where(collection => collection.HasCache && collection[mod.Index].Settings is { Enabled: true }))
{
if (reload)
collection._cache!.ReloadMod(mod, true);
else
if (justAdd)
collection._cache!.AddMod(mod, true);
else
collection._cache!.ReloadMod(mod, true);
}
}