Possibly fix bug where switching away from default collection in current collection breaks the cache.

This commit is contained in:
Ottermandias 2021-07-05 18:53:29 +02:00
parent 893925f599
commit 75b141f653

View file

@ -151,6 +151,7 @@ namespace Penumbra.Mods
{ {
if( collection.Name != ForcedCollection.Name if( collection.Name != ForcedCollection.Name
&& collection.Name != CurrentCollection.Name && collection.Name != CurrentCollection.Name
&& collection.Name != DefaultCollection.Name
&& CharacterCollection.All( kvp => kvp.Value.Name != collection.Name ) ) && CharacterCollection.All( kvp => kvp.Value.Name != collection.Name ) )
{ {
collection.ClearCache(); collection.ClearCache();