From e3d5eca60ff823bc3120d9fb714b508b42458b3d Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 22 Jul 2023 01:18:01 -0400 Subject: [PATCH] I'm dumb --- NewHorizons/Patches/GlobalMusicControllerPatches.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Patches/GlobalMusicControllerPatches.cs b/NewHorizons/Patches/GlobalMusicControllerPatches.cs index 0f0cf24e..4bd5e741 100644 --- a/NewHorizons/Patches/GlobalMusicControllerPatches.cs +++ b/NewHorizons/Patches/GlobalMusicControllerPatches.cs @@ -1,4 +1,6 @@ using HarmonyLib; +using NewHorizons.Patches.WarpPatches; +using NewHorizons.Utility.OWML; using System.Collections.Generic; using System.Reflection.Emit; using UnityEngine; @@ -35,8 +37,8 @@ public static class GlobalMusicControllerPatches ) // Insert a new check to it pointing to the same label as the others .Insert( - new CodeMatch(OpCodes.Call, AccessTools.Method(typeof(GlobalMusicControllerPatches), nameof(GlobalMusicControllerPatches.IsPlayerInNoAudioVolumes))), - new CodeMatch(OpCodes.Brfalse_S, label) + new CodeInstruction(OpCodes.Call, AccessTools.Method(typeof(GlobalMusicControllerPatches), nameof(GlobalMusicControllerPatches.IsPlayerInNoAudioVolumes))), + new CodeInstruction(OpCodes.Brfalse_S, label) ) .InstructionEnumeration(); }