Revert "Update submodule to 175.0.0 (#21318)" (#21319)

This commit is contained in:
metalgearsloth
2023-10-29 15:29:30 +11:00
committed by GitHub
parent 4f6ea2aef6
commit 5b8f3c48c4
327 changed files with 437 additions and 891 deletions

View File

@@ -5,7 +5,6 @@ using Content.Shared.Interaction;
using Content.Shared.Inventory.Events;
using Content.Shared.Radiation.Components;
using Content.Shared.Radiation.Systems;
using Robust.Server.Audio;
using Robust.Server.GameObjects;
using Robust.Server.Player;
@@ -150,7 +149,7 @@ public sealed class GeigerSystem : SharedGeigerSystem
if (!Resolve(uid, ref component, false))
return;
component.Stream = _audio.Stop(component.Stream);
component.Stream?.Stop();
if (!component.Sounds.TryGetValue(component.DangerLevel, out var sounds))
return;
@@ -164,7 +163,7 @@ public sealed class GeigerSystem : SharedGeigerSystem
var sound = _audio.GetSound(sounds);
var param = sounds.Params.WithLoop(true).WithVolume(-4f);
component.Stream = _audio.PlayGlobal(sound, session, param)?.Entity;
component.Stream = _audio.PlayGlobal(sound, session, param);
}
public static GeigerDangerLevel RadsToLevel(float rads)