From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 24 Feb 2025 17:59:06 +0000 (+0300) Subject: Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls... X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=bb110b376e363684ca3b3038527896322fca3268;p=space-station-14.git Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls inside ``SharedStackSystem`` (#35464) Cleanup --- diff --git a/Content.Shared/Stacks/SharedStackSystem.cs b/Content.Shared/Stacks/SharedStackSystem.cs index 7fe058afba..c444b8936d 100644 --- a/Content.Shared/Stacks/SharedStackSystem.cs +++ b/Content.Shared/Stacks/SharedStackSystem.cs @@ -257,7 +257,7 @@ namespace Content.Shared.Stacks public int GetMaxCount(string entityId) { var entProto = _prototype.Index(entityId); - entProto.TryGetComponent(out var stackComp); + entProto.TryGetComponent(out var stackComp, EntityManager.ComponentFactory); return GetMaxCount(stackComp); }