Skip to content

Commit

Permalink
fix lavaland shuttle for real
Browse files Browse the repository at this point in the history
  • Loading branch information
deltanedas committed Dec 13, 2024
1 parent 485ecc5 commit 1fe4236
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ private void OnFTL(Entity<DockingConsoleComponent> ent, ref DockingConsoleFTLMes
EntityUid? largestGrid = null;
var largestSize = 0f;

if (TryComp<StationDataComponent>(_map.GetMap(map), out var station))
if (_station.GetStationInMap(map) is {} station)
{
// prevent picking vgroid and stuff
return _station.GetLargestGrid(station);
return _station.GetLargestGrid(Comp<StationDataComponent>(station));
}

var query = EntityQueryEnumerator<MapGridComponent, TransformComponent>();
Expand Down

0 comments on commit 1fe4236

Please sign in to comment.