Let Material Path Resolver search through temporary collections.

This commit is contained in:
Ottermandias 2022-06-22 18:43:36 +02:00
parent 311882948a
commit 95e7febd38
3 changed files with 17 additions and 15 deletions

View file

@ -75,9 +75,9 @@ public partial class ModCollection
=> new(name, CurrentVersion, new Dictionary< string, ModSettings.SavedSettings >());
// Create a new temporary collection that does not save and has a negative index.
public static ModCollection CreateNewTemporary(string tag, string characterName)
public static ModCollection CreateNewTemporary( string tag, string characterName )
{
var collection = new ModCollection($"{tag}_{characterName}_temporary", Empty);
var collection = new ModCollection( $"{tag}_{characterName}", Empty );
collection.ModSettingChanged -= collection.SaveOnChange;
collection.InheritanceChanged -= collection.SaveOnChange;
collection.Index = ~Penumbra.TempMods.Collections.Count;