From d8fa46d4953a04127169367e68eacdcba0e8255b Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Tue, 11 Nov 2025 23:18:26 +0800 Subject: [PATCH] priority fix --- UXAssist/ModsCompat/CommonAPIWrapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)