From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 23 Mar 2023 07:11:19 +0000 (+1100) Subject: Change FTLCompletedEvent raise target (#14790) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=5ad059bf36cc664b31a595e86d58aee22573c146;p=space-station-14.git Change FTLCompletedEvent raise target (#14790) --- diff --git a/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs b/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs index f68533d4bb..369803b497 100644 --- a/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs +++ b/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs @@ -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(uid);