Skip to content

Commit

Permalink
Revert to the original Harmony patch
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodypenguin committed Jan 25, 2022
1 parent 5a12c31 commit cbc08e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HarmonyPatches/MaxDistanceTranspiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private static IEnumerable<CodeInstruction> Transpile(MethodBase original,

private static bool SkipInstruction(CodeInstruction codeInstruction)
{
return codeInstruction.opcode != OpCodes.Ldc_R4 || (codeInstruction.operand is float f && f < 4799f && f > 4801f);
return codeInstruction.opcode != OpCodes.Ldc_R4 || codeInstruction.operand is not (> 4799f and < 4801f);
}
}
}

0 comments on commit cbc08e8

Please sign in to comment.