From 2a33457661d9aed6e29de3035b4b3c798890f158 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Sun, 20 Jul 2025 23:17:14 +0300 Subject: [PATCH] Harmony: Use nameof() instead of hardcoded strings --- MuzikaGromche/Plugin.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MuzikaGromche/Plugin.cs b/MuzikaGromche/Plugin.cs index c794f83..b37e167 100644 --- a/MuzikaGromche/Plugin.cs +++ b/MuzikaGromche/Plugin.cs @@ -1740,14 +1740,14 @@ namespace MuzikaGromche internal class JesterPatch { #if DEBUG - [HarmonyPatch("SetJesterInitialValues")] + [HarmonyPatch(nameof(JesterAI.SetJesterInitialValues))] [HarmonyPostfix] public static void AlmostInstantFollowTimerPostfix(JesterAI __instance) { __instance.beginCrankingTimer = 1f; } #endif - [HarmonyPatch("Update")] + [HarmonyPatch(nameof(JesterAI.Update))] [HarmonyPrefix] public static void DoNotStopTheMusicPrefix(JesterAI __instance, out State __state) { @@ -1769,7 +1769,7 @@ namespace MuzikaGromche } } - [HarmonyPatch("Update")] + [HarmonyPatch(nameof(JesterAI.Update))] [HarmonyPostfix] public static void DoNotStopTheMusic(JesterAI __instance, State __state) {