dont play equipsound if tryequip got called with silent true

This commit is contained in:
Paul Ritter
2021-12-31 10:24:07 +01:00
parent ca1b6d3d5a
commit a3e7bdea42

View File

@@ -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();