From bb110b376e363684ca3b3038527896322fca3268 Mon Sep 17 00:00:00 2001 From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 24 Feb 2025 20:59:06 +0300 Subject: [PATCH] Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls inside ``SharedStackSystem`` (#35464) Cleanup --- Content.Shared/Stacks/SharedStackSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.51.2