diff --git a/EXILED/Exiled.Events/Patches/Events/Player/Jumping.cs b/EXILED/Exiled.Events/Patches/Events/Player/Jumping.cs index 435bcb7eca..6f50676792 100644 --- a/EXILED/Exiled.Events/Patches/Events/Player/Jumping.cs +++ b/EXILED/Exiled.Events/Patches/Events/Player/Jumping.cs @@ -47,8 +47,8 @@ private static IEnumerable Transpiler(IEnumerable instruction.opcode == OpCodes.Brfalse_S); + offset = 1; + index = newInstructions.FindIndex(instruction => instruction.StoresField(Field(typeof(FpcMotor), nameof(FpcMotor._maxFallSpeed)))) + offset; // make br_false use stored value newInstructions.Insert(index, new CodeInstruction(OpCodes.Ldloc, jumping));