mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
Use item status extension method (#23884)
Just removes some lines of code. (cherry picked from commit e665c2487e2f248bdc6b435bdcdb3060c69b546c)
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