[HOTFIX] fix holopads with multiple ai cores dying (#34289)
change return to continue Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -43,10 +43,10 @@ public sealed class StationAiSystem : SharedStationAiSystem
|
|||||||
var stationAiCore = new Entity<StationAiCoreComponent>(ent, entStationAiCore);
|
var stationAiCore = new Entity<StationAiCoreComponent>(ent, entStationAiCore);
|
||||||
|
|
||||||
if (!TryGetInsertedAI(stationAiCore, out var insertedAi) || !TryComp(insertedAi, out ActorComponent? actor))
|
if (!TryGetInsertedAI(stationAiCore, out var insertedAi) || !TryComp(insertedAi, out ActorComponent? actor))
|
||||||
return;
|
continue;
|
||||||
|
|
||||||
if (stationAiCore.Comp.RemoteEntity == null || stationAiCore.Comp.Remote)
|
if (stationAiCore.Comp.RemoteEntity == null || stationAiCore.Comp.Remote)
|
||||||
return;
|
continue;
|
||||||
|
|
||||||
var xform = Transform(stationAiCore.Comp.RemoteEntity.Value);
|
var xform = Transform(stationAiCore.Comp.RemoteEntity.Value);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user