Skip to content

Commit bb110b3

Browse files
authored
Cleanup: Pass in IComponentFactory in EntityPrototype.TryGetComponent calls inside SharedStackSystem (space-wizards#35464)
Cleanup
1 parent 02f0190 commit bb110b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Content.Shared/Stacks/SharedStackSystem.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public int GetCount(EntityUid uid, StackComponent? component = null)
257257
public int GetMaxCount(string entityId)
258258
{
259259
var entProto = _prototype.Index<EntityPrototype>(entityId);
260-
entProto.TryGetComponent<StackComponent>(out var stackComp);
260+
entProto.TryGetComponent<StackComponent>(out var stackComp, EntityManager.ComponentFactory);
261261
return GetMaxCount(stackComp);
262262
}
263263

0 commit comments

Comments
 (0)