diff --git a/Content.Shared/Storage/EntitySystems/SharedEntityStorageSystem.cs b/Content.Shared/Storage/EntitySystems/SharedEntityStorageSystem.cs index 911c6e5380..19e41848a1 100644 --- a/Content.Shared/Storage/EntitySystems/SharedEntityStorageSystem.cs +++ b/Content.Shared/Storage/EntitySystems/SharedEntityStorageSystem.cs @@ -336,6 +336,17 @@ public abstract class SharedEntityStorageSystem : EntitySystem return false; } + if (_container.IsEntityInContainer(target)) + { + if (_container.TryGetOuterContainer(target,Transform(target) ,out var container) && + !HasComp(container.Owner)) + { + Popup.PopupClient(Loc.GetString("entity-storage-component-already-contains-user-message"), user, user); + + return false; + } + } + //Checks to see if the opening position, if offset, is inside of a wall. if (component.EnteringOffset != new Vector2(0, 0) && !HasComp(target)) //if the entering position is offset {