Hopefully fix issue with missing caches.

This commit is contained in:
Ottermandias 2023-04-29 15:49:33 +02:00
parent c2933ba95c
commit 3d5765796e
4 changed files with 10 additions and 5 deletions

View file

@ -51,6 +51,7 @@ public class CollectionCacheManager : IDisposable
_communicator.ModSettingChanged.Subscribe(OnModSettingChange);
_communicator.CollectionInheritanceChanged.Subscribe(OnCollectionInheritanceChange);
CreateNecessaryCaches();
_active.Individuals.Loaded += CreateNecessaryCaches;
if (!MetaFileManager.CharacterUtility.Ready)
MetaFileManager.CharacterUtility.LoadingFinished += IncrementCounters;