misc flare fixes (#12942)
This commit is contained in:
18
Content.Client/Light/EntitySystems/ExpendableLightSystem.cs
Normal file
18
Content.Client/Light/EntitySystems/ExpendableLightSystem.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Content.Client.Light.Components;
|
||||
|
||||
namespace Content.Client.Light.EntitySystems;
|
||||
|
||||
public sealed class ExpendableLightSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<ExpendableLightComponent, ComponentShutdown>(OnLightShutdown);
|
||||
}
|
||||
|
||||
private void OnLightShutdown(EntityUid uid, ExpendableLightComponent component, ComponentShutdown args)
|
||||
{
|
||||
component.PlayingStream?.Stop();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user