/// The component that the entity is chasing
/// </summary>
[DataField(required: true)]
- public ComponentRegistry ChasingComponent = default!;
+ public ComponentRegistry ChasingComponent = [];
/// <summary>
/// The maximum radius in which the entity chooses the target component to follow
private void ChangeTarget(EntityUid uid, ChasingWalkComponent component)
{
+ if (component.ChasingComponent.Count <= 0)
+ return;
+
//We find our coordinates and calculate the radius of the target search.
var xform = Transform(uid);
var range = component.MaxChaseRadius;