mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Just removes some lines of code. (cherry picked from commit e665c2487e2f248bdc6b435bdcdb3060c69b546c)
22 lines
685 B
C#
22 lines
685 B
C#
using Content.Client.Items;
|
|
using Content.Client.Radiation.UI;
|
|
using Content.Shared.Radiation.Components;
|
|
using Content.Shared.Radiation.Systems;
|
|
|
|
namespace Content.Client.Radiation.Systems;
|
|
|
|
public sealed class GeigerSystem : SharedGeigerSystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeLocalEvent<GeigerComponent, AfterAutoHandleStateEvent>(OnHandleState);
|
|
Subs.ItemStatus<GeigerComponent>(ent => ent.Comp.ShowControl ? new GeigerItemControl(ent) : null);
|
|
}
|
|
|
|
private void OnHandleState(EntityUid uid, GeigerComponent component, ref AfterAutoHandleStateEvent args)
|
|
{
|
|
component.UiUpdateNeeded = true;
|
|
}
|
|
}
|