Skip to content

Commit

Permalink
Fixed metadata not being applied the first time
Browse files Browse the repository at this point in the history
  • Loading branch information
Metious committed Mar 5, 2024
1 parent 772591d commit b62e081
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Nautilus/Patchers/LanguagePatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ internal static void InsertCustomLines(ref Language __instance)
}

if (_currentLanguage == FallbackLanguage)
{
__instance.ParseMetaData();
return;
}

var diffStrings = currentStrings.Except(fallbackStrings);

Expand All @@ -72,6 +75,8 @@ internal static void InsertCustomLines(ref Language __instance)
{
__instance.strings[currentOnlyString.Key] = currentOnlyString.Value;
}

__instance.ParseMetaData();
}

private static void LoadLanguageFilePrefix(string language)
Expand Down

0 comments on commit b62e081

Please sign in to comment.