[HOTFIX] Fix maroon objective, change the text (#36990)

* test

* text

* capital C

* guh
This commit is contained in:
ScarKy0
2025-04-28 11:31:42 +02:00
committed by GitHub
parent fba07c69a9
commit 14cca7990a
4 changed files with 20 additions and 17 deletions

View File

@@ -648,18 +648,11 @@ public sealed partial class EmergencyShuttleSystem : EntitySystem
if (!EmergencyShuttleArrived)
return false;
// check each emergency shuttle
// check if target is on an emergency shuttle
var xform = Transform(target);
foreach (var stationData in EntityQuery<StationEmergencyShuttleComponent>())
{
if (stationData.EmergencyShuttle == null)
continue;
if (IsOnGrid(xform, stationData.EmergencyShuttle.Value))
{
return true;
}
}
if (HasComp<EmergencyShuttleComponent>(xform.GridUid))
return true;
return false;
}