mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 20:24:17 +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;
|
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);
|
var oldCollection = _collectionManager.Active.ByType(type, identifier);
|
||||||
if (collection == oldCollection)
|
if (collection == oldCollection)
|
||||||
|
|
@ -360,6 +360,7 @@ public class CommandHandler : IDisposable
|
||||||
Print(
|
Print(
|
||||||
$"Removed {oldCollection.Name} as {type.ToName()} Collection assignment {(identifier.IsValid ? $" for {identifier}." : ".")}");
|
$"Removed {oldCollection.Name} as {type.ToName()} Collection assignment {(identifier.IsValid ? $" for {identifier}." : ".")}");
|
||||||
anySuccess = true;
|
anySuccess = true;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
_collectionManager.Active.SetCollection(collection!, type, individualIndex);
|
_collectionManager.Active.SetCollection(collection!, type, individualIndex);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue