Fix for localization

This commit is contained in:
JappaWakka 2022-08-06 20:15:21 +02:00
parent d3de943dba
commit 0fb4f51b07
1 changed files with 4 additions and 9 deletions

View File

@ -21,16 +21,11 @@
End Sub
Public Shared Sub ReloadGameModeTokens()
For i = 0 To LocalizationTokens.Count - 1
If i <= LocalizationTokens.Count - 1 Then
Dim Token As Token = LocalizationTokens.Values(i)
LocalizationTokens.Clear()
If Token.IsGameModeToken = True Then
LocalizationTokens.Remove(LocalizationTokens.Keys(i))
i -= 1
End If
End If
Next
Localization.LanguageSuffix = LanguageSuffix
LoadTokenFile(GameMode.DefaultLocalizationsPath, False)
If GameModeManager.GameModeCount > 0 Then
Dim GameModeLocalizationPath As String = GameModeManager.ActiveGameMode.LocalizationsPath