Skip to content

Commit

Permalink
accidentally removed twitch auth check
Browse files Browse the repository at this point in the history
  • Loading branch information
InfernoDragon0 committed Aug 14, 2024
1 parent 7976c6e commit bb13fe7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion COTL_API/CustomLocalization/CustomLocalizationPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion COTL_API/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit bb13fe7

Please sign in to comment.