Move some Station methods into shared (#38976)
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
using System.Numerics;
|
||||
using Content.Server.Shuttles.Components;
|
||||
using Content.Server.Station.Components;
|
||||
using Content.Server.Station.Events;
|
||||
using Content.Shared.CCVar;
|
||||
using Content.Shared.Salvage;
|
||||
using Content.Shared.Shuttles.Components;
|
||||
using Content.Shared.Station.Components;
|
||||
using Robust.Shared.Collections;
|
||||
@@ -62,10 +60,7 @@ public sealed partial class ShuttleSystem
|
||||
if (!_cfg.GetCVar(CCVars.GridFill))
|
||||
return;
|
||||
|
||||
if (!TryComp(uid, out StationDataComponent? dataComp))
|
||||
return;
|
||||
|
||||
var targetGrid = _station.GetLargestGrid(dataComp);
|
||||
var targetGrid = _station.GetLargestGrid(uid);
|
||||
|
||||
if (targetGrid == null)
|
||||
return;
|
||||
@@ -165,12 +160,7 @@ public sealed partial class ShuttleSystem
|
||||
if (!_cfg.GetCVar(CCVars.GridFill))
|
||||
return;
|
||||
|
||||
if (!TryComp<StationDataComponent>(uid, out var data))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var targetGrid = _station.GetLargestGrid(data);
|
||||
var targetGrid = _station.GetLargestGrid(uid);
|
||||
|
||||
if (targetGrid == null)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user