Fix construction ghost HandsComponent check (#1386)

Co-authored-by: scuffedjays <yetanotherscuffed@gmail.com>
This commit is contained in:
F77F
2020-07-17 03:40:38 -05:00
committed by GitHub
parent de013ba2ab
commit 37f5e175e0

View File

@@ -274,7 +274,10 @@ namespace Content.Server.GameObjects.EntitySystems
}
// Try to find the stack with the material in the user's hand.
var hands = placingEnt.GetComponent<HandsComponent>();
if(!placingEnt.TryGetComponent<HandsComponent>(out var hands))
{
return false;
};
var activeHand = hands.GetActiveHand?.Owner;
if (activeHand == null)
{