From ec1da98800990085a6a71a365da6898b853971de Mon Sep 17 00:00:00 2001 From: xen-42 Date: Sun, 27 Oct 2024 16:13:09 -0400 Subject: [PATCH] Also ignore empty primary --- NewHorizons/External/Configs/PlanetConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewHorizons/External/Configs/PlanetConfig.cs b/NewHorizons/External/Configs/PlanetConfig.cs index 1989ffdc..81dd162a 100644 --- a/NewHorizons/External/Configs/PlanetConfig.cs +++ b/NewHorizons/External/Configs/PlanetConfig.cs @@ -291,7 +291,7 @@ namespace NewHorizons.External.Configs // User error #983 // 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 - 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."); }