mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix vessel merge null checks
This commit is contained in:
parent
2032fb566c
commit
4085eb8eff
@ -270,12 +270,12 @@ 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;
|
||||
}
|
||||
Vessel = Vessel == null ? otherConfig.Vessel : Vessel;
|
||||
|
||||
entryPositions = Concatenate(entryPositions, otherConfig.entryPositions);
|
||||
curiosities = Concatenate(curiosities, otherConfig.curiosities);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user