Skip to content

Commit 73b4227

Browse files
committed
Fix slash commands.
1 parent 30a55d4 commit 73b4227

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Penumbra/CommandHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ private bool SetCollection(string arguments)
314314
}
315315

316316
var anySuccess = false;
317-
foreach (var identifier in identifiers.Distinct())
317+
foreach (var identifier in identifiers.Distinct().DefaultIfEmpty(ActorIdentifier.Invalid))
318318
{
319319
var oldCollection = _collectionManager.Active.ByType(type, identifier);
320320
if (collection == oldCollection)
@@ -360,6 +360,7 @@ private bool SetCollection(string arguments)
360360
Print(
361361
$"Removed {oldCollection.Name} as {type.ToName()} Collection assignment {(identifier.IsValid ? $" for {identifier}." : ".")}");
362362
anySuccess = true;
363+
continue;
363364
}
364365

365366
_collectionManager.Active.SetCollection(collection!, type, individualIndex);

0 commit comments

Comments
 (0)