mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 16:17:27 +00:00
Use item status extension method (#23884)
Just removes some lines of code.
This commit is contained in:
@@ -16,13 +16,8 @@ namespace Content.Client.Stack
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
SubscribeLocalEvent<StackComponent, ItemStatusCollectMessage>(OnItemStatus);
|
||||
SubscribeLocalEvent<StackComponent, AppearanceChangeEvent>(OnAppearanceChange);
|
||||
}
|
||||
|
||||
private void OnItemStatus(EntityUid uid, StackComponent component, ItemStatusCollectMessage args)
|
||||
{
|
||||
args.Controls.Add(new StackStatusControl(component));
|
||||
Subs.ItemStatus<StackComponent>(ent => new StackStatusControl(ent));
|
||||
}
|
||||
|
||||
public override void SetCount(EntityUid uid, int amount, StackComponent? component = null)
|
||||
|
||||
Reference in New Issue
Block a user