From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Fri, 23 May 2025 15:11:29 +0000 (+0200) Subject: Cleanup TryGetContainingContainer (#37752) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=c1f1eaa0c32eea720252975983076c1ed76b1ce1;p=space-station-14.git Cleanup TryGetContainingContainer (#37752) kill --- 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))