diff --git a/Patches/SteamPlatformPatch.cs b/Patches/SteamPlatformPatch.cs index ebbcfc1..719bbb3 100644 --- a/Patches/SteamPlatformPatch.cs +++ b/Patches/SteamPlatformPatch.cs @@ -24,20 +24,7 @@ namespace MMOKitchen.Patches private static IEnumerable Transpiler(IEnumerable instructions) { CodeMatcher matcher = new(instructions); - - foreach (var instruction in matcher.InstructionEnumeration()) - { - if (instruction.operand != null) - { - Debug.Log($"{instruction.opcode} : {instruction.operand}"); - } - else - { - Debug.Log($"{instruction.opcode}"); - } - - } - + matcher.MatchForward(false, new CodeMatch(OpCodes.Ldc_I4_4), new CodeMatch(OpCodes.Call), new CodeMatch(OpCodes.Callvirt), new CodeMatch(OpCodes.Stloc_S), new CodeMatch(OpCodes.Ldloca_S), new CodeMatch(OpCodes.Call), new CodeMatch(OpCodes.Brtrue)) .Set(OpCodes.Ldc_I4, Mod.MaxPlayers);