mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix slash commands.
This commit is contained in:
parent
30a55d401f
commit
73b4227310
1 changed files with 2 additions and 1 deletions
|
|
@ -314,7 +314,7 @@ public class CommandHandler : IDisposable
|
|||
}
|
||||
|
||||
var anySuccess = false;
|
||||
foreach (var identifier in identifiers.Distinct())
|
||||
foreach (var identifier in identifiers.Distinct().DefaultIfEmpty(ActorIdentifier.Invalid))
|
||||
{
|
||||
var oldCollection = _collectionManager.Active.ByType(type, identifier);
|
||||
if (collection == oldCollection)
|
||||
|
|
@ -360,6 +360,7 @@ public class CommandHandler : IDisposable
|
|||
Print(
|
||||
$"Removed {oldCollection.Name} as {type.ToName()} Collection assignment {(identifier.IsValid ? $" for {identifier}." : ".")}");
|
||||
anySuccess = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
_collectionManager.Active.SetCollection(collection!, type, individualIndex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue