Don't play empty gun sounds (#9286)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user