Skip to content

Commit

Permalink
fix: infinite loop from parse metadata call (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
Metious committed Apr 30, 2024
1 parent 9464432 commit 0167861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nautilus/Patchers/LanguagePatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ internal static void Patch(Harmony harmony)
HarmonyMethod insertLinesMethod = new(AccessTools.Method(typeof(LanguagePatcher), nameof(InsertCustomLines)));
HarmonyMethod loadLanguagesMethod = new(AccessTools.Method(typeof(LanguagePatcher), nameof(LoadLanguageFilePrefix)));

harmony.Patch(AccessTools.Method(typeof(Language), nameof(Language.ParseMetaData)), prefix: insertLinesMethod);
harmony.Patch(AccessTools.Method(typeof(Language), nameof(LanguageSDF.Initialize)), prefix: insertLinesMethod);
harmony.Patch(AccessTools.Method(typeof(Language), nameof(Language.GetKeysFor)), prefix: insertLinesMethod);
harmony.Patch(AccessTools.Method(typeof(Language), nameof(Language.TryGet)), prefix: repatchCheckMethod);
harmony.Patch(AccessTools.Method(typeof(Language), nameof(Language.Contains)), prefix: repatchCheckMethod);
Expand Down

0 comments on commit 0167861

Please sign in to comment.