]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls...
authorWinkarst <74284083+Winkarst-cpu@users.noreply.github.com>
Mon, 24 Feb 2025 17:59:06 +0000 (20:59 +0300)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 17:59:06 +0000 (18:59 +0100)
Cleanup

Content.Shared/Stacks/SharedStackSystem.cs

index 7fe058afbaab4598e46b254611f9c49c1bb12a13..c444b8936d853576c68265c1563ce80bfbe44a9f 100644 (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);
         }