Fix crash when removing hand component (#5822)
This commit is contained in:
@@ -474,7 +474,7 @@ namespace Content.Shared.Hands.Components
|
||||
/// </summary>
|
||||
public void DropHeldEntity(Hand hand, EntityCoordinates targetDropLocation)
|
||||
{
|
||||
if (hand.HeldEntity == null)
|
||||
if (hand.IsEmpty)
|
||||
return;
|
||||
|
||||
var heldEntity = hand.HeldEntity;
|
||||
|
||||
Reference in New Issue
Block a user