From 07a15765183dd16f3c7db995de74c2fa8117c48a Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Wed, 29 Jun 2022 23:31:09 +1000 Subject: [PATCH] Don't play empty gun sounds (#9286) --- Content.Client/Weapons/Ranged/Systems/GunSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Client/Weapons/Ranged/Systems/GunSystem.cs b/Content.Client/Weapons/Ranged/Systems/GunSystem.cs index b3a4ba4652..ed180eac17 100644 --- a/Content.Client/Weapons/Ranged/Systems/GunSystem.cs +++ b/Content.Client/Weapons/Ranged/Systems/GunSystem.cs @@ -204,7 +204,7 @@ public sealed partial class GunSystem : SharedGunSystem protected override void PlaySound(EntityUid gun, string? sound, EntityUid? user = null) { - if (sound == null || user == null || !Timing.IsFirstTimePredicted) return; + if (string.IsNullOrEmpty(sound) || user == null || !Timing.IsFirstTimePredicted) return; SoundSystem.Play(sound, Filter.Local(), gun); }