diff --git a/Content.Shared/Clothing/EntitySystems/ToggleableClothingSystem.cs b/Content.Shared/Clothing/EntitySystems/ToggleableClothingSystem.cs index 0f1f6c9659..0aacc16802 100644 --- a/Content.Shared/Clothing/EntitySystems/ToggleableClothingSystem.cs +++ b/Content.Shared/Clothing/EntitySystems/ToggleableClothingSystem.cs @@ -71,7 +71,10 @@ public sealed class ToggleableClothingSystem : EntitySystem /// private void OnToggleableUnequip(EntityUid uid, ToggleableClothingComponent component, GotUnequippedEvent args) { - if (component.Container != null && component.Container.ContainedEntity != null && component.ClothingUid != null) + // If the attached clothing is not currently in the container, this just assumes that it is currently equipped. + // This should maybe double check that the entity currently in the slot is actually the attached clothing, but + // if its not, then something else has gone wrong already... + if (component.Container != null && component.Container.ContainedEntity == null && component.ClothingUid != null) _inventorySystem.TryUnequip(args.Equipee, component.Slot, force: true); }