diff --git a/COTL_API/CustomLocalization/CustomLocalizationPatches.cs b/COTL_API/CustomLocalization/CustomLocalizationPatches.cs index 0e3d6f9..1ca4b8e 100644 --- a/COTL_API/CustomLocalization/CustomLocalizationPatches.cs +++ b/COTL_API/CustomLocalization/CustomLocalizationPatches.cs @@ -50,7 +50,9 @@ private static bool GameSettings_OnLanguageChanged(GameSettings __instance, int SettingsManager.Settings.Game.Language = text; LocalizationManager.CurrentLanguage = text; __instance._cachedLanguage = text; - TwitchManager.SetLanguage(LocalizationManager.CurrentLanguageCode); + + if (TwitchAuthentication.IsAuthenticated) + TwitchManager.SetLanguage(LocalizationManager.CurrentLanguageCode); UnityEngine.Debug.Log("GameSettings - Change Language to " + text); LocalizationManager.LocalizeAll(true); diff --git a/COTL_API/Plugin.cs b/COTL_API/Plugin.cs index d14d90e..e37b570 100644 --- a/COTL_API/Plugin.cs +++ b/COTL_API/Plugin.cs @@ -248,7 +248,9 @@ private void RunSavePatch() SettingsManager.Settings.Game.Language = "English"; LocalizationManager.CurrentLanguage = "English"; - TwitchManager.SetLanguage(LocalizationManager.CurrentLanguageCode); + + if (TwitchAuthentication.IsAuthenticated) + TwitchManager.SetLanguage(LocalizationManager.CurrentLanguageCode); LocalizationManager.LocalizeAll(true); };