From f07ad5dfc971f92c86a7d849b83626e0fc119925 Mon Sep 17 00:00:00 2001 From: Trol1face <111673896+Trol1face@users.noreply.github.com> Date: Sun, 10 Mar 2024 21:09:35 +0300 Subject: [PATCH] Update MechaDronesTweaks.cs Changed skipstage1 matcher from operand = 2 to opcode = ldc_i4_1 --- MechaDronesTweaks/MechaDronesTweaks.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MechaDronesTweaks/MechaDronesTweaks.cs b/MechaDronesTweaks/MechaDronesTweaks.cs index 99b34c6..203db9d 100644 --- a/MechaDronesTweaks/MechaDronesTweaks.cs +++ b/MechaDronesTweaks/MechaDronesTweaks.cs @@ -111,7 +111,7 @@ public static class MechaDronesTweaks matcher.MatchForward(false, new CodeMatch(OpCodes.Ldc_I4_1), new CodeMatch(OpCodes.Stfld, AccessTools.Field(typeof(DroneComponent), nameof(DroneComponent.stage))) - ).Operand = 2; + ).Opcode = OpCodes.Ldc_I4_2; return matcher.InstructionEnumeration(); } @@ -190,4 +190,4 @@ public static class MechaDronesTweaks ); return matcher.InstructionEnumeration(); } -} \ No newline at end of file +}