Also ignore empty primary

This commit is contained in:
xen-42 2024-10-27 16:13:09 -04:00
parent f00095e316
commit ec1da98800

View File

@ -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.");
} }