* Fix replayghost spawn
* missed a spot
{
var size = grid.LocalAABB.Size.LengthSquared();
- if (maxSize is not null && size < maxSize)
- continue;
-
var station = HasComp<StationMemberComponent>(uid);
+ //We want the first station grid to overwrite any previous non-station grids no matter the size, in case the vgroid was found first
+ if (maxSize is not null && size < maxSize && !(!stationFound && station))
+ continue;
+
if (!station && stationFound)
continue;
if (station)
stationFound = true;
-
}
coords = new EntityCoordinates(maxUid ?? default, default);