]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
[HOTFIX] fix holopads with multiple ai cores dying (#34289)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Sun, 12 Jan 2025 17:19:58 +0000 (17:19 +0000)
committerGitHub <noreply@github.com>
Sun, 12 Jan 2025 17:19:58 +0000 (11:19 -0600)
change return to continue

Co-authored-by: deltanedas <@deltanedas:kde.org>
Content.Server/Silicons/StationAi/StationAiSystem.cs

index 9c15112b305eb5cec6c7c9476525d4b12c39d45a..054712059e46a887948b15362225b361e6cc4759 100644 (file)
@@ -43,10 +43,10 @@ public sealed class StationAiSystem : SharedStationAiSystem
             var stationAiCore = new Entity<StationAiCoreComponent>(ent, entStationAiCore);
 
             if (!TryGetInsertedAI(stationAiCore, out var insertedAi) || !TryComp(insertedAi, out ActorComponent? actor))
-                return;
+                continue;
 
             if (stationAiCore.Comp.RemoteEntity == null || stationAiCore.Comp.Remote)
-                return;
+                continue;
 
             var xform = Transform(stationAiCore.Comp.RemoteEntity.Value);