From f2276de9ab05a6725095908d84c28a479bd11b61 Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 25 Aug 2022 22:12:35 -0400 Subject: [PATCH] Load translations earlier --- NewHorizons/Main.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Main.cs b/NewHorizons/Main.cs index bdaf697b..5833db13 100644 --- a/NewHorizons/Main.cs +++ b/NewHorizons/Main.cs @@ -306,6 +306,9 @@ namespace NewHorizons AtmosphereBuilder.Init(); BrambleNodeBuilder.Init(BodyDict[CurrentStarSystem].Select(x => x.Config).Where(x => x.Bramble?.dimension != null).ToArray()); + // Has to go before loading planets else the Discord Rich Presence mod won't show the right text + LoadTranslations(ModHelper.Manifest.ModFolderPath + "Assets/", this); + if (isSolarSystem) { foreach (var supernovaPlanetEffectController in GameObject.FindObjectsOfType()) @@ -319,8 +322,6 @@ namespace NewHorizons SystemCreationHandler.LoadSystem(SystemDict[CurrentStarSystem]); } - LoadTranslations(ModHelper.Manifest.ModFolderPath + "Assets/", this); - StarChartHandler.Init(SystemDict.Values.ToArray()); if (isSolarSystem)