We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e83b64 commit 697ca77Copy full SHA for 697ca77
EXILED/Exiled.Events/Patches/Events/Player/Jumping.cs
@@ -47,8 +47,8 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
47
// after ProcessJump, store its result
48
newInstructions.Insert(index, new CodeInstruction(OpCodes.Stloc, jumping));
49
50
- // offset here is 0
51
- index = newInstructions.FindIndex(instruction => instruction.opcode == OpCodes.Brfalse_S);
+ offset = 1;
+ index = newInstructions.FindIndex(instruction => instruction.StoresField(Field(typeof(FpcMotor), nameof(FpcMotor._maxFallSpeed)))) + offset;
52
53
// make br_false use stored value
54
newInstructions.Insert(index, new CodeInstruction(OpCodes.Ldloc, jumping));
0 commit comments