mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
I'm dumb
This commit is contained in:
parent
e4e4e20ff4
commit
e3d5eca60f
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user