mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-03 17:47:29 +00:00
Cleanup: Pass in `IComponentFactory in EntityPrototype.TryGetComponent calls inside SharedStackSystem` (#35464)
Cleanup
This commit is contained in:
@@ -257,7 +257,7 @@ namespace Content.Shared.Stacks
|
||||
public int GetMaxCount(string entityId)
|
||||
{
|
||||
var entProto = _prototype.Index<EntityPrototype>(entityId);
|
||||
entProto.TryGetComponent<StackComponent>(out var stackComp);
|
||||
entProto.TryGetComponent<StackComponent>(out var stackComp, EntityManager.ComponentFactory);
|
||||
return GetMaxCount(stackComp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user