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; return;
} }
type.HandlingInfo(out _, out var recomputeList, out var reload); type.HandlingInfo(out _, out var recomputeList, out var justAdd);
if (!recomputeList) if (!recomputeList)
return; return;
foreach (var collection in _storage.Where(collection => collection.HasCache && collection[mod.Index].Settings is { Enabled: true })) foreach (var collection in _storage.Where(collection => collection.HasCache && collection[mod.Index].Settings is { Enabled: true }))
{ {
if (reload) if (justAdd)
collection._cache!.ReloadMod(mod, true);
else
collection._cache!.AddMod(mod, true); collection._cache!.AddMod(mod, true);
else
collection._cache!.ReloadMod(mod, true);
} }
} }