From f0e3bb6b9a2691f630396509c58ae8910e2cbdf8 Mon Sep 17 00:00:00 2001 From: FreezeDriedMangoes Date: Mon, 27 Jun 2022 14:46:39 -0400 Subject: [PATCH] fixed incorrect naming --- NewHorizons/Utility/DebugMenu/DebugMenuPropPlacer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Utility/DebugMenu/DebugMenuPropPlacer.cs b/NewHorizons/Utility/DebugMenu/DebugMenuPropPlacer.cs index 3c122792..b07b99ac 100644 --- a/NewHorizons/Utility/DebugMenu/DebugMenuPropPlacer.cs +++ b/NewHorizons/Utility/DebugMenu/DebugMenuPropPlacer.cs @@ -310,7 +310,7 @@ namespace NewHorizons.Utility.DebugMenu { Logger.Log("potentially updating copy of config at " + filePath); Logger.Log($"{menu.loadedConfigFiles[filePath].name} {AstroObjectLocator.GetAstroObject(menu.loadedConfigFiles[filePath].name)?.name}"); - Logger.Log($"{menu.loadedConfigFiles[filePath].name}") ; + Logger.Log($"{menu.loadedConfigFiles[filePath]}") ; if (menu.loadedConfigFiles[filePath].starSystem != Main.Instance.CurrentStarSystem) return; if (menu.loadedConfigFiles[filePath].name == null || AstroObjectLocator.GetAstroObject(menu.loadedConfigFiles[filePath].name) == null) { Logger.Log("Failed to update copy of config at " + filePath); continue; } @@ -335,7 +335,7 @@ namespace NewHorizons.Utility.DebugMenu var filepath = "planets/" + Main.Instance.CurrentStarSystem + "/" + astroObject.name + ".json"; PlanetConfig c = new PlanetConfig(); c.starSystem = Main.Instance.CurrentStarSystem; - c.name = astroObject.GetCustomName(); + c.name = astroObject._name == AstroObject.Name.CustomString ? astroObject.GetCustomName() : astroObject._name.ToString(); c.Props = new PropModule(); c.Props.details = newDetails[astroObject];