Made translation support reloading

This commit is contained in:
Ben C 2022-04-02 00:21:34 -04:00
parent ce088f499a
commit aa7e285b27
2 changed files with 8 additions and 0 deletions

View File

@ -140,5 +140,12 @@ namespace NewHorizons.Handlers
return key; return key;
} }
public static void ClearTables()
{
_shipLogTranslationDictionary.Clear();
_dialogueTranslationDictionary.Clear();
_uiTranslationDictionary.Clear();
}
} }
} }

View File

@ -41,6 +41,7 @@ namespace NewHorizons.Utility
bundle.Unload(true); bundle.Unload(true);
} }
Main.AssetBundles.Clear(); Main.AssetBundles.Clear();
TranslationHandler.ClearTables();
Logger.Log("Begin reload of config files...", Logger.LogType.Log); Logger.Log("Begin reload of config files...", Logger.LogType.Log);