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