if (_loader.TryLoad(mapId, path.ToString(), out var ent) && ent.Count == 1)
{
+ if (TryComp<ShuttleComponent>(ent[0], out var shuttle))
+ {
+ TryFTLProximity(ent[0], shuttle, targetGrid.Value);
+ }
+ else
+ {
+ valid = false;
+ }
+
if (group.Hide)
{
var iffComp = EnsureComp<IFFComponent>(ent[0]);
Dirty(ent[0], iffComp);
}
- if (TryComp<ShuttleComponent>(ent[0], out var shuttle))
+ if (group.StationGrid)
{
- TryFTLProximity(ent[0], shuttle, targetGrid.Value);
_station.AddGridToStation(uid, ent[0]);
}
- else
- {
- valid = false;
- }
if (group.NameGrid)
{
nameGrid: true
minCount: 2
maxCount: 2
+ stationGrid: false
paths:
- /Maps/Ruins/derelict.yml
- /Maps/Ruins/djstation.yml
nameGrid: true
minCount: 2
maxCount: 2
+ stationGrid: false
paths:
- /Maps/Ruins/derelict.yml
- /Maps/Ruins/djstation.yml