From: 0x6273 <0x40@keemail.me> Date: Sun, 12 Mar 2023 23:40:02 +0000 (+0100) Subject: Fix SetOutfitCommand not working when mob is crit or stunned (#14593) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=3a9c71cc41b3d2e7e5c277e3da86a074f5067a90;p=space-station-14.git Fix SetOutfitCommand not working when mob is crit or stunned (#14593) --- diff --git a/Content.Server/Administration/Commands/SetOutfitCommand.cs b/Content.Server/Administration/Commands/SetOutfitCommand.cs index 31dc21878e..b27cb7fb99 100644 --- a/Content.Server/Administration/Commands/SetOutfitCommand.cs +++ b/Content.Server/Administration/Commands/SetOutfitCommand.cs @@ -21,7 +21,7 @@ namespace Content.Server.Administration.Commands { [Dependency] private readonly IEntityManager _entities = default!; [Dependency] private readonly IPrototypeManager _prototypes = default!; - + public string Command => "setoutfit"; public string Description => Loc.GetString("set-outfit-command-description", ("requiredComponent", nameof(InventoryComponent))); @@ -112,7 +112,7 @@ namespace Content.Server.Administration.Commands pdaComponent.ContainedID.FullName = entityManager.GetComponent(target).EntityName; } - invSystem.TryEquip(target, equipmentEntity, slot.Name, true, inventory: inventoryComponent); + invSystem.TryEquip(target, equipmentEntity, slot.Name, silent: true, force: true, inventory: inventoryComponent); onEquipped?.Invoke(target, equipmentEntity); }