From ef539ad8402a6f56d08af7c64fffa265791b41b3 Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Sat, 3 Sep 2022 13:25:29 -0400 Subject: [PATCH] Convert name to string if not custom string --- NewHorizons/Patches/TranslationPatches.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/NewHorizons/Patches/TranslationPatches.cs b/NewHorizons/Patches/TranslationPatches.cs index 87bb031f..f08164fb 100644 --- a/NewHorizons/Patches/TranslationPatches.cs +++ b/NewHorizons/Patches/TranslationPatches.cs @@ -14,7 +14,13 @@ namespace NewHorizons.Patches { var ao = __instance.GetAstroObject(); - if (ao == null || ao._name != AstroObject.Name.CustomString) return true; + if (ao == null) return true; + + if (ao._name != AstroObject.Name.CustomString) + { + __result = AstroObject.AstroObjectNameToString(ao._name); + return false; + } __result = string.Empty;