misc: already in lock, change back to _collections.Count for readibility

This commit is contained in:
mayo 2025-11-01 17:23:56 -04:00
parent cc95678d05
commit 3f8199f1cd
No known key found for this signature in database
GPG key ID: 5B138E78344184A6

View file

@ -207,7 +207,7 @@ public class CollectionStorage : IReadOnlyList<ModCollection>, IDisposable, ISer
{
lock (_collectionsLock)
{
if (collection.Identity.Index <= ModCollection.Empty.Identity.Index || collection.Identity.Index >= Count)
if (collection.Identity.Index <= ModCollection.Empty.Identity.Index || collection.Identity.Index >= _collections.Count)
{
Penumbra.Messager.NotificationMessage("Can not remove the empty collection.", NotificationType.Error, false);
return false;