Change FTLCompletedEvent raise target (#14790)
This commit is contained in:
@@ -360,10 +360,9 @@ public sealed partial class ShuttleSystem
|
|||||||
comp.State = FTLState.Cooldown;
|
comp.State = FTLState.Cooldown;
|
||||||
comp.Accumulator += FTLCooldown;
|
comp.Accumulator += FTLCooldown;
|
||||||
_console.RefreshShuttleConsoles(uid);
|
_console.RefreshShuttleConsoles(uid);
|
||||||
var mapUid = _mapManager.GetMapEntityId(mapId);
|
|
||||||
_mapManager.SetMapPaused(mapId, false);
|
_mapManager.SetMapPaused(mapId, false);
|
||||||
var ftlEvent = new FTLCompletedEvent();
|
var ftlEvent = new FTLCompletedEvent();
|
||||||
RaiseLocalEvent(mapUid, ref ftlEvent, true);
|
RaiseLocalEvent(uid, ref ftlEvent, true);
|
||||||
break;
|
break;
|
||||||
case FTLState.Cooldown:
|
case FTLState.Cooldown:
|
||||||
RemComp<FTLComponent>(uid);
|
RemComp<FTLComponent>(uid);
|
||||||
|
|||||||
Reference in New Issue
Block a user