1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-08 20:53:28 +08:00

Update MechaDronesTweaks.cs

Changed skipstage1 matcher from operand = 2 to opcode = ldc_i4_1
This commit is contained in:
Trol1face
2024-03-10 21:09:35 +03:00
committed by GitHub
parent 6d2fdd28a8
commit f07ad5dfc9

View File

@@ -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();
}
}
}