Change FTLCompletedEvent raise target (#14790)

This commit is contained in:
metalgearsloth
2023-03-23 18:11:19 +11:00
committed by GitHub
parent 1a43dd1f50
commit 5ad059bf36

View 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);