]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix emergency docking config (#15346)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Wed, 12 Apr 2023 09:05:55 +0000 (19:05 +1000)
committerGitHub <noreply@github.com>
Wed, 12 Apr 2023 09:05:55 +0000 (02:05 -0700)
Content.Server/Shuttles/Systems/EmergencyShuttleSystem.cs

index 6efdaedc0af1d5db26f036cfe16cb0f42ffc10cc..5f4983cf9807b422111c9233b30a3563328dd91c 100644 (file)
@@ -64,6 +64,8 @@ public sealed partial class EmergencyShuttleSystem : EntitySystem
 
    private bool _emergencyShuttleEnabled;
 
+   private const string DockTag = "DockEmergency";
+
    public override void Initialize()
    {
        _sawmill = Logger.GetSawmill("shuttle.emergency");
@@ -125,7 +127,7 @@ public sealed partial class EmergencyShuttleSystem : EntitySystem
        if (targetGrid == null)
            return;
 
-       var config = _dock.GetDockingConfig(stationData.EmergencyShuttle.Value, targetGrid.Value);
+       var config = _dock.GetDockingConfig(stationData.EmergencyShuttle.Value, targetGrid.Value, DockTag);
        if (config == null)
            return;
 
@@ -162,7 +164,7 @@ public sealed partial class EmergencyShuttleSystem : EntitySystem
 
        var xformQuery = GetEntityQuery<TransformComponent>();
 
-       if (_shuttle.TryFTLDock(stationData.EmergencyShuttle.Value, shuttle, targetGrid.Value))
+       if (_shuttle.TryFTLDock(stationData.EmergencyShuttle.Value, shuttle, targetGrid.Value, DockTag))
        {
            if (TryComp<TransformComponent>(targetGrid.Value, out var targetXform))
            {