Enable nullability in Content.Server (#3685)
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Content.Server.AI.Utility.Considerations.Hands
|
||||
{
|
||||
var owner = context.GetState<SelfState>().GetValue();
|
||||
|
||||
if (!owner.TryGetComponent(out HandsComponent handsComponent))
|
||||
if (owner == null || !owner.TryGetComponent(out HandsComponent? handsComponent))
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user