Use item status extension method (#23884)
Just removes some lines of code.
This commit is contained in:
committed by
GitHub
parent
e2dd30f640
commit
e665c2487e
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user