From f4cbe6767839b634f9bf162a30357e9c13e412df Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 26 Aug 2023 17:49:40 -0400 Subject: [PATCH] Fix --- NewHorizons/Handlers/PlanetCreationHandler.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NewHorizons/Handlers/PlanetCreationHandler.cs b/NewHorizons/Handlers/PlanetCreationHandler.cs index 0b8249b0..623a2371 100644 --- a/NewHorizons/Handlers/PlanetCreationHandler.cs +++ b/NewHorizons/Handlers/PlanetCreationHandler.cs @@ -35,7 +35,7 @@ namespace NewHorizons.Handlers public static float SolarSystemRadius { get; private set; } public static float DefaultFurthestOrbit => 30000f; - public static List> CustomBuilders; + public static List> CustomBuilders = new(); public static void Init(List bodies) { @@ -712,9 +712,9 @@ namespace NewHorizons.Handlers { customBuilder.Invoke(go, JsonConvert.SerializeObject(body.Config.extras)); } - catch + catch (Exception e) { - NHLogger.LogError($"Failed to use custom builder on body {body.Config.name}"); + NHLogger.LogError($"Failed to use custom builder on body {body.Config.name} - {e}"); } } }