diff --git a/UXAssist/ModsCompat/CommonAPIWrapper.cs b/UXAssist/ModsCompat/CommonAPIWrapper.cs index a3e7291..b1fe04f 100644 --- a/UXAssist/ModsCompat/CommonAPIWrapper.cs +++ b/UXAssist/ModsCompat/CommonAPIWrapper.cs @@ -10,7 +10,7 @@ public static class CommonAPIWrapper { if (!Chainloader.PluginInfos.TryGetValue(CommonAPIPlugin.GUID, out var commonAPIPlugin) || commonAPIPlugin.Metadata.Version > new System.Version(1, 6, 7, 0)) return; - harmony.Patch(AccessTools.Method(typeof(GameOption), nameof(GameOption.InitKeys)), new HarmonyMethod(typeof(CommonAPIWrapper), nameof(PatchInitKeys))); + harmony.Patch(AccessTools.Method(typeof(GameOption), nameof(GameOption.InitKeys)), new HarmonyMethod(AccessTools.Method(typeof(CommonAPIWrapper), nameof(PatchInitKeys)), Priority.First)); } public static bool PatchInitKeys(GameOption __instance)