]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Change FTLCompletedEvent raise target (#14790)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 23 Mar 2023 07:11:19 +0000 (18:11 +1100)
committerGitHub <noreply@github.com>
Thu, 23 Mar 2023 07:11:19 +0000 (18:11 +1100)
Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs

index f68533d4bbcbb0a2c6031f03436e06a493b0cf5a..369803b497493dd1bc236a270c04a910f266fc73 100644 (file)
@@ -360,10 +360,9 @@ public sealed partial class ShuttleSystem
                     comp.State = FTLState.Cooldown;
                     comp.Accumulator += FTLCooldown;
                     _console.RefreshShuttleConsoles(uid);
-                    var mapUid = _mapManager.GetMapEntityId(mapId);
                     _mapManager.SetMapPaused(mapId, false);
                     var ftlEvent = new FTLCompletedEvent();
-                    RaiseLocalEvent(mapUid, ref ftlEvent, true);
+                    RaiseLocalEvent(uid, ref ftlEvent, true);
                     break;
                 case FTLState.Cooldown:
                     RemComp<FTLComponent>(uid);