From fcd8f1817021f5e8ed4d339a9271f05d2c40e02f Mon Sep 17 00:00:00 2001 From: Zack Backmen Date: Sun, 12 Nov 2023 15:06:58 +0300 Subject: [PATCH] Update AIEyeSystem.cs --- Content.Server/Backmen/StationAI/Systems/AIEyeSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Backmen/StationAI/Systems/AIEyeSystem.cs b/Content.Server/Backmen/StationAI/Systems/AIEyeSystem.cs index be98a79237c..cb8122ff329 100644 --- a/Content.Server/Backmen/StationAI/Systems/AIEyeSystem.cs +++ b/Content.Server/Backmen/StationAI/Systems/AIEyeSystem.cs @@ -58,7 +58,7 @@ public override void Initialize() private void OnPowerChange(EntityUid uid, StationAIComponent component, ref PowerChangedEvent args) { - if (HasComp(uid)) + if (HasComp(uid) || TerminatingOrDeleted(uid)) { return; }