Enable nullability in Content.Server (#3685)
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Content.Server.AI.Utils
|
||||
return false;
|
||||
}
|
||||
|
||||
if (owner.TryGetComponent(out AiControllerComponent controller))
|
||||
if (owner.TryGetComponent(out AiControllerComponent? controller))
|
||||
{
|
||||
var targetRange = (target.Transform.Coordinates.Position - owner.Transform.Coordinates.Position).Length;
|
||||
if (targetRange > controller.VisionRadius)
|
||||
|
||||
Reference in New Issue
Block a user