Use item status extension method (#23884)

Just removes some lines of code.
This commit is contained in:
Pieter-Jan Briers
2024-01-12 01:14:13 +01:00
committed by GitHub
parent e2dd30f640
commit e665c2487e
11 changed files with 42 additions and 76 deletions

View File

@@ -9,11 +9,7 @@ public sealed class HandheldGpsSystem : EntitySystem
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<HandheldGPSComponent, ItemStatusCollectMessage>(OnItemStatus);
}
private void OnItemStatus(Entity<HandheldGPSComponent> ent, ref ItemStatusCollectMessage args)
{
args.Controls.Add(new HandheldGpsStatusControl(ent));
Subs.ItemStatus<HandheldGPSComponent>(ent => new HandheldGpsStatusControl(ent));
}
}