Fix deleting PCP collections.

This commit is contained in:
Ottermandias 2025-08-28 18:52:06 +02:00
parent a04a5a071c
commit f7cf5503bb

View file

@ -84,7 +84,7 @@ public class PcpService : IApiService, IDisposable
var collections = _collections.Storage.Where(c => c.Identity.Name.StartsWith("PCP/")).ToList(); var collections = _collections.Storage.Where(c => c.Identity.Name.StartsWith("PCP/")).ToList();
Penumbra.Log.Information($"[PCPService] Deleting {collections.Count} mods containing the tag PCP."); Penumbra.Log.Information($"[PCPService] Deleting {collections.Count} mods containing the tag PCP.");
foreach (var collection in collections) foreach (var collection in collections)
_collections.Storage.Delete(collection); _collections.Storage.RemoveCollection(collection);
} }
private void OnModPathChange(ModPathChangeType type, Mod mod, DirectoryInfo? oldDirectory, DirectoryInfo? newDirectory) private void OnModPathChange(ModPathChangeType type, Mod mod, DirectoryInfo? oldDirectory, DirectoryInfo? newDirectory)