From 05c02540e6dedb671cd91c4e979d0ca6a2c388ed Mon Sep 17 00:00:00 2001 From: dontbetank <59025279+dontbetank@users.noreply.github.com> Date: Tue, 3 Jan 2023 08:39:53 +0300 Subject: [PATCH] fix this thing (#13285) --- Content.Server/Storage/EntitySystems/SecretStashSystem.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Content.Server/Storage/EntitySystems/SecretStashSystem.cs b/Content.Server/Storage/EntitySystems/SecretStashSystem.cs index 10a3974258..93aeca9f37 100644 --- a/Content.Server/Storage/EntitySystems/SecretStashSystem.cs +++ b/Content.Server/Storage/EntitySystems/SecretStashSystem.cs @@ -5,7 +5,6 @@ using Content.Shared.Hands.Components; using Content.Shared.Hands.EntitySystems; using Content.Shared.Item; using Robust.Shared.Containers; -using Robust.Shared.Player; namespace Content.Server.Storage.EntitySystems { @@ -29,7 +28,7 @@ namespace Content.Server.Storage.EntitySystems private void OnDestroyed(EntityUid uid, SecretStashComponent component, DestructionEventArgs args) { - component.ItemContainer.EmptyContainer(); + _containerSystem.EmptyContainer(component.ItemContainer, attachToGridOrMap: true); } ///