From c1f1eaa0c32eea720252975983076c1ed76b1ce1 Mon Sep 17 00:00:00 2001 From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Fri, 23 May 2025 17:11:29 +0200 Subject: [PATCH] Cleanup TryGetContainingContainer (#37752) kill --- Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs b/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs index bbbf8a449f..e2946ebb91 100644 --- a/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs +++ b/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs @@ -357,7 +357,7 @@ public abstract class SharedStorageSystem : EntitySystem loc = default; storage = null; - if (!ContainerSystem.TryGetContainingContainer(itemEnt, out container) || + if (!ContainerSystem.TryGetContainingContainer(itemEnt.Owner, out container) || container.ID != StorageComponent.ContainerId || !TryComp(container.Owner, out storage) || !_itemQuery.Resolve(itemEnt, ref itemEnt.Comp, false)) -- 2.51.2