diff --git a/EXILED/Exiled.Events/Patches/Events/Player/SearchingPickupEvent.cs b/EXILED/Exiled.Events/Patches/Events/Player/SearchingPickupEvent.cs index 5f074567f..c05e73f0c 100644 --- a/EXILED/Exiled.Events/Patches/Events/Player/SearchingPickupEvent.cs +++ b/EXILED/Exiled.Events/Patches/Events/Player/SearchingPickupEvent.cs @@ -35,6 +35,7 @@ private static IEnumerable Transpiler(IEnumerable newInstructions = ListPool.Pool.Get(instructions); Label retLabel = generator.DefineLabel(); + Label skipLabel = generator.DefineLabel(); LocalBuilder ev = generator.DeclareLocal(typeof(SearchingPickupEventArgs)); @@ -46,12 +47,22 @@ private static IEnumerable Transpiler(IEnumerable instruction.opcode == OpCodes.Ret) + offset; + List