Cleanup: Pass in `IComponentFactory in EntityPrototype.TryGetComponent calls inside SharedStackSystem` (#35464)

Cleanup
This commit is contained in:
Winkarst
2025-02-24 18:59:06 +01:00
committed by GitHub
parent 02f0190c35
commit bb110b376e
+1 -1
View File
@@ -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);
}