Fix weh spam (#6312)

This commit is contained in:
metalgearsloth
2022-01-26 14:07:45 +11:00
committed by GitHub
parent f917c18ff8
commit 705dd5beff

View File

@@ -34,6 +34,9 @@ namespace Content.Server.Sound
private void HandleEmitSoundOnUseInHand(EntityUid eUI, BaseEmitSoundComponent component, UseInHandEvent arg)
{
if (arg.Handled) return;
arg.Handled = true;
TryEmitSound(component);
}
@@ -44,6 +47,9 @@ namespace Content.Server.Sound
private void HandleEmitSoundOnActivateInWorld(EntityUid eUI, BaseEmitSoundComponent component, ActivateInWorldEvent arg)
{
if (arg.Handled) return;
arg.Handled = true;
TryEmitSound(component);
}