mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add missing null checks (#661)
This commit is contained in:
commit
c748ad8bcd
@ -292,10 +292,10 @@ namespace NewHorizons
|
|||||||
|
|
||||||
var system = new StarSystemConfig()
|
var system = new StarSystemConfig()
|
||||||
{
|
{
|
||||||
entryPositions = entryPositions
|
entryPositions = entryPositions?
|
||||||
.Select((pair) => new EntryPositionInfo() { id = pair.Key, position = pair.Value })
|
.Select((pair) => new EntryPositionInfo() { id = pair.Key, position = pair.Value })
|
||||||
.ToArray(),
|
.ToArray(),
|
||||||
curiosities = curiousityColours
|
curiosities = curiousityColours?
|
||||||
.Select((pair) => new CuriosityColorInfo() { id = pair.Key, color = MColor.FromColor(pair.Value.colour), highlightColor = MColor.FromColor(pair.Value.highlight) })
|
.Select((pair) => new CuriosityColorInfo() { id = pair.Key, color = MColor.FromColor(pair.Value.colour), highlightColor = MColor.FromColor(pair.Value.highlight) })
|
||||||
.ToArray()
|
.ToArray()
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user