From 2c5102b85d626c54a3a5fa40b3245769b213dd34 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Sat, 8 May 2021 03:49:34 +0200 Subject: [PATCH] HandsComponent now validates coordinates before attempting to drop. --- Content.Server/GameObjects/Components/GUI/HandsComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/GUI/HandsComponent.cs b/Content.Server/GameObjects/Components/GUI/HandsComponent.cs index aaf0eaa059..f9e864e9cb 100644 --- a/Content.Server/GameObjects/Components/GUI/HandsComponent.cs +++ b/Content.Server/GameObjects/Components/GUI/HandsComponent.cs @@ -291,7 +291,7 @@ namespace Content.Server.GameObjects.Components.GUI public bool Drop(string slot, EntityCoordinates coords, bool doMobChecks = true, bool doDropInteraction = true, bool intentional = true) { var hand = GetHand(slot); - if (!CanDrop(slot, doMobChecks) || hand?.Entity == null) + if (!CanDrop(slot, doMobChecks) || !coords.IsValid(Owner.EntityManager) || hand?.Entity == null) { return false; }