From 3a9c71cc41b3d2e7e5c277e3da86a074f5067a90 Mon Sep 17 00:00:00 2001 From: 0x6273 <0x40@keemail.me> Date: Mon, 13 Mar 2023 00:40:02 +0100 Subject: [PATCH] Fix SetOutfitCommand not working when mob is crit or stunned (#14593) --- Content.Server/Administration/Commands/SetOutfitCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.52.0