From cb7c820fcf4709d04e3765c84423d7299b028642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Ueti?= <52474532+Mirino97@users.noreply.github.com> Date: Tue, 3 May 2022 00:05:23 -0300 Subject: [PATCH] Fixes dropping items to ground on storage insert fail (#7885) --- Content.Server/Storage/EntitySystems/StorageSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Storage/EntitySystems/StorageSystem.cs b/Content.Server/Storage/EntitySystems/StorageSystem.cs index ac1da00792..af87eb8c1b 100644 --- a/Content.Server/Storage/EntitySystems/StorageSystem.cs +++ b/Content.Server/Storage/EntitySystems/StorageSystem.cs @@ -572,7 +572,7 @@ namespace Content.Server.Storage.EntitySystems var toInsert = hands.ActiveHandEntity; - if (!_sharedHandsSystem.TryDrop(player, toInsert.Value, handsComp: hands)) + if (!CanInsert(uid, toInsert.Value, storageComp) || !_sharedHandsSystem.TryDrop(player, toInsert.Value, handsComp: hands)) { Popup(uid, player, "comp-storage-cant-insert", storageComp); return false;