]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix: Play sound when equiping clothing by using it in hand (#37351)
authorWinkarst <74284083+Winkarst-cpu@users.noreply.github.com>
Sun, 11 May 2025 14:37:09 +0000 (17:37 +0300)
committerGitHub <noreply@github.com>
Sun, 11 May 2025 14:37:09 +0000 (10:37 -0400)
Fix

Content.Shared/Clothing/EntitySystems/ClothingSystem.cs

index a7e52180cd05a6706c8abf43de4398caccd50456..10417045ff2dfa0ea10da745c678ccc6c6b79753 100644 (file)
@@ -65,14 +65,14 @@ public abstract class ClothingSystem : EntitySystem
                 if (!_invSystem.TryUnequip(userEnt, slotDef.Name, true, inventory: userEnt, checkDoafter: true))
                     continue;
 
-                if (!_invSystem.TryEquip(userEnt, toEquipEnt, slotDef.Name, true, inventory: userEnt, clothing: toEquipEnt, checkDoafter: true, triggerHandContact: true))
+                if (!_invSystem.TryEquip(userEnt, toEquipEnt, slotDef.Name, inventory: userEnt, clothing: toEquipEnt, checkDoafter: true, triggerHandContact: true))
                     continue;
 
                 _handsSystem.PickupOrDrop(userEnt, slotEntity.Value, handsComp: userEnt);
             }
             else
             {
-                if (!_invSystem.TryEquip(userEnt, toEquipEnt, slotDef.Name, true, inventory: userEnt, clothing: toEquipEnt, checkDoafter: true, triggerHandContact: true))
+                if (!_invSystem.TryEquip(userEnt, toEquipEnt, slotDef.Name, inventory: userEnt, clothing: toEquipEnt, checkDoafter: true, triggerHandContact: true))
                     continue;
             }