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