Fix bug with collection setting and empty collection.

This commit is contained in:
Ottermandias 2025-08-22 15:43:55 +02:00
parent dad01e1af8
commit b7f326e29c

View file

@ -59,8 +59,15 @@ public sealed class CollectionAutoSelector : IService, IDisposable
return; return;
var collection = _resolver.PlayerCollection(); var collection = _resolver.PlayerCollection();
Penumbra.Log.Debug($"Setting current collection to {collection.Identity.Identifier} through automatic collection selection."); if (collection.Identity.Id == Guid.Empty)
_collections.SetCollection(collection, CollectionType.Current); {
Penumbra.Log.Debug($"Not setting current collection because character has no mods assigned.");
}
else
{
Penumbra.Log.Debug($"Setting current collection to {collection.Identity.Identifier} through automatic collection selection.");
_collections.SetCollection(collection, CollectionType.Current);
}
} }