From cd1faf586019b045b66fbf1915a67a0a08db8220 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Mon, 13 Dec 2021 17:30:58 +0100 Subject: [PATCH] Fix empty collection building cache after last change. --- Penumbra/Mods/CollectionManager.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Penumbra/Mods/CollectionManager.cs b/Penumbra/Mods/CollectionManager.cs index f3ce8cd5..f9cc99e5 100644 --- a/Penumbra/Mods/CollectionManager.cs +++ b/Penumbra/Mods/CollectionManager.cs @@ -62,13 +62,13 @@ namespace Penumbra.Mods return; } - if( DefaultCollection.Cache == null ) + if( DefaultCollection.Name != ModCollection.Empty.Name && DefaultCollection.Cache == null ) DefaultCollection.CreateCache( _manager.TempPath, _manager.StructuredMods.AllMods( _manager.Config.SortFoldersFirst )); - if( ForcedCollection.Cache == null ) + if( ForcedCollection.Name != ModCollection.Empty.Name && ForcedCollection.Cache == null ) ForcedCollection.CreateCache( _manager.TempPath, _manager.StructuredMods.AllMods( _manager.Config.SortFoldersFirst ) ); - foreach (var (_, collection) in CharacterCollection.Where( kvp => kvp.Value.Cache == null )) + foreach (var (_, collection) in CharacterCollection.Where( kvp => kvp.Value.Name != ModCollection.Empty.Name && kvp.Value.Cache == null )) collection.CreateCache( _manager.TempPath, _manager.StructuredMods.AllMods( _manager.Config.SortFoldersFirst ) ); }