Refactor stacks to not use method events (#4177)
This commit is contained in:
committed by
GitHub
parent
ca4e665296
commit
0093a961bc
@@ -57,7 +57,7 @@ namespace Content.Shared.Stacks
|
||||
return;
|
||||
|
||||
// This will change the count and call events.
|
||||
Owner.EntityManager.EventBus.RaiseLocalEvent(Owner.Uid, new StackChangeCountEvent(cast.Count));
|
||||
EntitySystem.Get<SharedStackSystem>().SetCount(Owner.Uid, this, cast.Count);
|
||||
MaxCount = cast.MaxCount;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user