Skip to content

Commit

Permalink
bluespace event FTL fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheackraze committed Apr 21, 2024
1 parent 75d2090 commit fd20c73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Content.Server/StationEvents/Events/BluespaceErrorRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ protected override void Started(EntityUid uid, BluespaceErrorRuleComponent compo
_shuttle.SetIFFColor(gridUid, component.Color);
var offset = _random.NextVector2(1350f, 2200f);
var mapId = GameTicker.DefaultMap;
var coords = new MapCoordinates(offset, mapId);
var location = Spawn(null, coords);
var mapUid = _mapManager.GetMapEntityId(mapId);
if (TryComp<ShuttleComponent>(component.GridUid, out var shuttle))
{
_shuttle.FTLToCoordinates(gridUid, shuttle, location.ToCoordinates(), 5.5f, 55f);
_shuttle.FTLToCoordinates(gridUid, shuttle, new EntityCoordinates(mapUid, offset), 0f, 0f, 30f);
}

}
Expand Down

0 comments on commit fd20c73

Please sign in to comment.