From e5da49c852785cc757aecac388f48ca5c275b52e Mon Sep 17 00:00:00 2001 From: Yamato Date: Sat, 18 May 2024 15:02:35 +0200 Subject: [PATCH] Fix IL ERROR --- Exiled.Events/Patches/Events/Scp106/Attacking.cs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Exiled.Events/Patches/Events/Scp106/Attacking.cs b/Exiled.Events/Patches/Events/Scp106/Attacking.cs index 244d6447e4..4f6ffa1185 100644 --- a/Exiled.Events/Patches/Events/Scp106/Attacking.cs +++ b/Exiled.Events/Patches/Events/Scp106/Attacking.cs @@ -32,9 +32,9 @@ private static IEnumerable Transpiler(IEnumerable newInstructions = ListPool.Pool.Get(instructions); - int offset = 2; - int index = newInstructions.FindIndex(x => x.Calls(Method(typeof(Scp106Attack), nameof(Scp106Attack.SendCooldown)))) + offset; - Label continueLabel = generator.DefineLabel(); + int offset = 3; + int index = newInstructions.FindIndex(x => x.Calls(Method(typeof(Scp106Attack), nameof(Scp106Attack.VerifyShot)))) + offset; + Label ret = generator.DefineLabel(); newInstructions.InsertRange( index, @@ -63,13 +63,9 @@ private static IEnumerable Transpiler(IEnumerable