diff --git a/Penumbra/Collections/CollectionManager.Active.cs b/Penumbra/Collections/CollectionManager.Active.cs index 9ae03552..80c5eadc 100644 --- a/Penumbra/Collections/CollectionManager.Active.cs +++ b/Penumbra/Collections/CollectionManager.Active.cs @@ -24,7 +24,7 @@ public partial class ModCollection public ModCollection Default { get; private set; } = Empty; // A single collection that can not be deleted as a fallback for the current collection. - public ModCollection DefaultName { get; private set; } = Empty; + private ModCollection DefaultName { get; set; } = Empty; // The list of character collections. private readonly Dictionary< string, ModCollection > _characters = new(); @@ -36,11 +36,8 @@ public partial class ModCollection public ModCollection Character( string name ) => _characters.TryGetValue( name, out var c ) ? c : Default; - public bool HasCharacterCollections - => _characters.Count > 0; - // Set a active collection, can be used to set Default, Current or Character collections. - public void SetCollection( int newIdx, Type type, string? characterName = null ) + private void SetCollection( int newIdx, Type type, string? characterName = null ) { var oldCollectionIdx = type switch { @@ -120,7 +117,7 @@ public partial class ModCollection // Load default, current and character collections from config. // Then create caches. If a collection does not exist anymore, reset it to an appropriate default. - public void LoadCollections() + private void LoadCollections() { var configChanged = !ReadActiveCollections( out var jObject ); diff --git a/Penumbra/Collections/ModCollection.File.cs b/Penumbra/Collections/ModCollection.File.cs index 156e540f..6ca21b19 100644 --- a/Penumbra/Collections/ModCollection.File.cs +++ b/Penumbra/Collections/ModCollection.File.cs @@ -97,7 +97,7 @@ public partial class ModCollection // Since inheritances depend on other collections existing, // we return them as a list to be applied after reading all collections. - public static ModCollection? LoadFromFile( FileInfo file, out IReadOnlyList< string > inheritance ) + private static ModCollection? LoadFromFile( FileInfo file, out IReadOnlyList< string > inheritance ) { inheritance = Array.Empty< string >(); if( !file.Exists ) diff --git a/Penumbra/Mods/ModFileSystem.cs b/Penumbra/Mods/ModFileSystem.cs index 75034247..f748dc90 100644 --- a/Penumbra/Mods/ModFileSystem.cs +++ b/Penumbra/Mods/ModFileSystem.cs @@ -16,9 +16,9 @@ public sealed class ModFileSystem : FileSystem< Mod >, IDisposable // Does not save or copy the backup in the current mod directory, // as this is done on mod directory changes only. private void Save() - { - SaveToFile( new FileInfo( ModFileSystemFile ), SaveMod, true ); - PluginLog.Verbose( "Saved mod filesystem." ); + { + SaveToFile( new FileInfo( ModFileSystemFile ), SaveMod, true ); + PluginLog.Verbose( "Saved mod filesystem." ); } // Create a new ModFileSystem from the currently loaded mods and the current sort order file.