prevent typing sound from playing when AI interacts with consoles (#32906)

* prevent typing sound from playing when AI interacts with consoles

* cleanup
This commit is contained in:
MendaxxDev
2024-10-21 05:50:05 +02:00
committed by GitHub
parent 1d2ad3c335
commit b5687e4c73
6 changed files with 18 additions and 1 deletions

View File

@@ -58,7 +58,10 @@ public abstract class SharedEmitSoundSystem : EntitySystem
private void HandleEmitSoundOnUIOpen(EntityUid uid, EmitSoundOnUIOpenComponent component, AfterActivatableUIOpenEvent args)
{
TryEmitSound(uid, component, args.User);
if (_whitelistSystem.IsBlacklistFail(component.Blacklist, args.User))
{
TryEmitSound(uid, component, args.User);
}
}
private void OnMobState(Entity<SoundWhileAliveComponent> entity, ref MobStateChangedEvent args)