mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Also ignore empty primary
This commit is contained in:
parent
f00095e316
commit
ec1da98800
2
NewHorizons/External/Configs/PlanetConfig.cs
vendored
2
NewHorizons/External/Configs/PlanetConfig.cs
vendored
@ -291,7 +291,7 @@ namespace NewHorizons.External.Configs
|
|||||||
// User error #983
|
// User error #983
|
||||||
// This will not catch if they wrote the two names slightly differently but oh well don't be stupid
|
// This will not catch if they wrote the two names slightly differently but oh well don't be stupid
|
||||||
// Ideally we should just check for loops in PlanetGraph
|
// Ideally we should just check for loops in PlanetGraph
|
||||||
if (Orbit.primaryBody == name)
|
if (Orbit.primaryBody == name && !string.IsNullOrEmpty(Orbit.primaryBody))
|
||||||
{
|
{
|
||||||
throw new Exception($"You set {name} to orbit itself, that is invalid. The planet will not load.");
|
throw new Exception($"You set {name} to orbit itself, that is invalid. The planet will not load.");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user