Skip to content

Commit

Permalink
Update AIEyeSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxup committed Nov 12, 2023
1 parent 20798f5 commit fcd8f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Backmen/StationAI/Systems/AIEyeSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public override void Initialize()

private void OnPowerChange(EntityUid uid, StationAIComponent component, ref PowerChangedEvent args)
{
if (HasComp<AIEyeComponent>(uid))
if (HasComp<AIEyeComponent>(uid) || TerminatingOrDeleted(uid))
{
return;
}
Expand Down

0 comments on commit fcd8f18

Please sign in to comment.