mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-08 21:33:28 +08:00
missing patch
This commit is contained in:
@@ -92,6 +92,21 @@ public class Patch : BaseUnityPlugin
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyTranspiler]
|
||||
[HarmonyPatch(typeof(UIReplicatorWindow), "OnOkButtonClick")]
|
||||
private static IEnumerable<CodeInstruction> UIReplicatorWindow_OnOkButtonClick_Transpiler(IEnumerable<CodeInstruction> instructions)
|
||||
{
|
||||
foreach (var instr in instructions)
|
||||
{
|
||||
if (instr.opcode == OpCodes.Ldc_I4_S && instr.OperandIs(10))
|
||||
{
|
||||
instr.opcode = OpCodes.Ldc_I4;
|
||||
instr.operand = 1000;
|
||||
}
|
||||
yield return instr;
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyTranspiler]
|
||||
[HarmonyPatch(typeof(UIReplicatorWindow), "OnPlusButtonClick")]
|
||||
[HarmonyPatch(typeof(UIReplicatorWindow), "OnMinusButtonClick")]
|
||||
|
||||
Reference in New Issue
Block a user