From bc821598786cff24bab2f643e72a7378a33baf78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Aguilera=20Puerto?= <6766154+Zumorica@users.noreply.github.com> Date: Sat, 25 Apr 2020 12:03:20 +0200 Subject: [PATCH] Fix Drop interaction not being raised (#858) --- .../GameObjects/Components/GUI/ServerHandsComponent.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Server/GameObjects/Components/GUI/ServerHandsComponent.cs b/Content.Server/GameObjects/Components/GUI/ServerHandsComponent.cs index 853645d34b..5375c3b783 100644 --- a/Content.Server/GameObjects/Components/GUI/ServerHandsComponent.cs +++ b/Content.Server/GameObjects/Components/GUI/ServerHandsComponent.cs @@ -192,11 +192,15 @@ namespace Content.Server.GameObjects var inventorySlot = hands[slot]; var item = inventorySlot.ContainedEntity.GetComponent(); + if (!inventorySlot.Remove(inventorySlot.ContainedEntity)) { return false; } + if (!_entitySystemManager.GetEntitySystem().TryDroppedInteraction(Owner, item.Owner)) + return false; + item.RemovedFromSlot(); // TODO: The item should be dropped to the container our owner is in, if any.