Skip to content

Commit

Permalink
Upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 committed Apr 20, 2024
1 parent 0629a00 commit ba174aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Content.Server/Sound/EmitSoundSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
using Content.Shared.UserInterface;
using Content.Shared.Sound;
using Content.Shared.Sound.Components;
using Robust.Shared.Random;
using Robust.Shared.Timing;
using Robust.Shared.Network;

namespace Content.Server.Sound;

Expand Down
7 changes: 2 additions & 5 deletions Content.Shared/Sound/SharedEmitSoundSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public abstract class SharedEmitSoundSystem : EntitySystem
[Dependency] private readonly INetManager _netMan = default!;
[Dependency] private readonly ITileDefinitionManager _tileDefMan = default!;
[Dependency] protected readonly IRobustRandom Random = default!;
[Dependency] private readonly SharedAmbientSoundSystem _ambient = default!;
[Dependency] private readonly SharedAudioSystem _audioSystem = default!;
[Dependency] private readonly SharedAmbientSoundSystem _ambient = default!;
[Dependency] private readonly SharedAudioSystem _audioSystem = default!;
[Dependency] protected readonly SharedPopupSystem Popup = default!;

public override void Initialize()
Expand Down Expand Up @@ -64,9 +64,6 @@ private void OnMobState(Entity<SoundWhileAliveComponent> entity, ref MobStateCha
_ambient.SetAmbience(entity.Owner, args.NewMobState != MobState.Dead);
}

_ambient.SetAmbience(entity.Owner, args.NewMobState != MobState.Dead);
}

private void OnEmitSpawnOnInit(EntityUid uid, EmitSoundOnSpawnComponent component, MapInitEvent args)
{
TryEmitSound(uid, component, predict: false);
Expand Down

0 comments on commit ba174aa

Please sign in to comment.