From cbc08e8f99838a2c54f59955fdb4bbdcc3c29249 Mon Sep 17 00:00:00 2001 From: Bloody Penguin Date: Tue, 25 Jan 2022 19:57:55 +0100 Subject: [PATCH] Revert to the original Harmony patch --- HarmonyPatches/MaxDistanceTranspiler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HarmonyPatches/MaxDistanceTranspiler.cs b/HarmonyPatches/MaxDistanceTranspiler.cs index bc6eb62..89b081d 100644 --- a/HarmonyPatches/MaxDistanceTranspiler.cs +++ b/HarmonyPatches/MaxDistanceTranspiler.cs @@ -53,7 +53,7 @@ private static IEnumerable 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); } } } \ No newline at end of file