Center salvage shuttles (#17906)

It looks slightly offset due to localcenter but don't worry about it.
This commit is contained in:
metalgearsloth
2023-07-10 07:58:36 +10:00
committed by GitHub
parent 27e0ae776a
commit 53a0d1bc83
2 changed files with 3 additions and 20 deletions

View File

@@ -138,7 +138,7 @@ public sealed class SpawnSalvageMissionJob : Job<bool>
expedition.Rewards = mission.Rewards;
// Don't want consoles to have the incorrect name until refreshed.
var ftlUid = _entManager.CreateEntityUninitialized("FTLPoint", new EntityCoordinates(mapUid, Vector2.Zero));
var ftlUid = _entManager.CreateEntityUninitialized("FTLPoint", new EntityCoordinates(mapUid, grid.TileSizeHalfVector));
_entManager.GetComponent<MetaDataComponent>(ftlUid).EntityName = SharedSalvageSystem.GetFTLName(_prototypeManager.Index<DatasetPrototype>("names_borer"), _missionParams.Seed);
_entManager.InitializeAndStartEntity(ftlUid);