Fixes dropping items to ground on storage insert fail (#7885)
This commit is contained in:
@@ -572,7 +572,7 @@ namespace Content.Server.Storage.EntitySystems
|
|||||||
|
|
||||||
var toInsert = hands.ActiveHandEntity;
|
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);
|
Popup(uid, player, "comp-storage-cant-insert", storageComp);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user