Fix star system vessel merge NRE

This commit is contained in:
Nick 2023-03-21 20:13:51 -04:00
parent 04b8620562
commit 5d93b7c3cf

View File

@ -270,12 +270,15 @@ namespace NewHorizons.External.Configs
respawnHere = respawnHere || otherConfig.respawnHere;
startHere = startHere || otherConfig.startHere;
Vessel = Vessel == null ? otherConfig.Vessel : Vessel;
if (Vessel != null)
if (Vessel != null && otherConfig.Vessel != null)
{
Vessel.spawnOnVessel = Vessel.spawnOnVessel || otherConfig.Vessel.spawnOnVessel;
Vessel.alwaysPresent = Vessel.alwaysPresent || otherConfig.Vessel.alwaysPresent;
}
else
{
Vessel ??= otherConfig.Vessel;
}
entryPositions = Concatenate(entryPositions, otherConfig.entryPositions);
curiosities = Concatenate(curiosities, otherConfig.curiosities);