From 17627b20e29555b1f0fdf4efd41ce6c9035626dd Mon Sep 17 00:00:00 2001 From: wrexbe <81056464+wrexbe@users.noreply.github.com> Date: Sun, 19 Dec 2021 21:55:23 -0800 Subject: [PATCH] Fix crash when removing hand component (#5822) --- Content.Shared/Hands/Components/SharedHandsComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Hands/Components/SharedHandsComponent.cs b/Content.Shared/Hands/Components/SharedHandsComponent.cs index 4301e0f851..67028d1353 100644 --- a/Content.Shared/Hands/Components/SharedHandsComponent.cs +++ b/Content.Shared/Hands/Components/SharedHandsComponent.cs @@ -474,7 +474,7 @@ namespace Content.Shared.Hands.Components /// public void DropHeldEntity(Hand hand, EntityCoordinates targetDropLocation) { - if (hand.HeldEntity == null) + if (hand.IsEmpty) return; var heldEntity = hand.HeldEntity;