From a3e7bdea428e75e08608ce730032eda57ddfaf82 Mon Sep 17 00:00:00 2001 From: Paul Ritter Date: Fri, 31 Dec 2021 10:24:07 +0100 Subject: [PATCH] dont play equipsound if tryequip got called with silent true --- Content.Shared/Inventory/InventorySystem.Equip.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Inventory/InventorySystem.Equip.cs b/Content.Shared/Inventory/InventorySystem.Equip.cs index 937010950d..79c23ec868 100644 --- a/Content.Shared/Inventory/InventorySystem.Equip.cs +++ b/Content.Shared/Inventory/InventorySystem.Equip.cs @@ -92,7 +92,7 @@ public abstract partial class InventorySystem return false; } - if(item.EquipSound != null) + if(!silent && item.EquipSound != null) SoundSystem.Play(Filter.Pvs(target), item.EquipSound.GetSound(), target, AudioParams.Default.WithVolume(-2f)); inventory.Dirty();