File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
EXILED/Exiled.Events/Patches/Events/Player Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
3838 List < CodeInstruction > newInstructions = ListPool < CodeInstruction > . Pool . Get ( instructions ) ;
3939 Label returnLabel = generator . DefineLabel ( ) ;
4040
41- int offset = - 3 ;
41+ int offset = - 6 ;
4242 int index = newInstructions . FindIndex (
43- instruction => instruction . opcode == OpCodes . Newobj && ( ConstructorInfo ) instruction . operand == GetDeclaredConstructors ( typeof ( LabApi . Events . Arguments . PlayerEvents . PlayerCuffingEventArgs ) ) [ 0 ] ) + offset ;
43+ instruction => instruction . opcode == OpCodes . Newobj && ( ConstructorInfo ) instruction . operand == GetDeclaredConstructors ( typeof ( LabApi . Events . Arguments . PlayerEvents . PlayerUncuffingEventArgs ) ) [ 0 ] ) + offset ;
4444
4545 newInstructions . InsertRange (
4646 index ,
You can’t perform that action at this time.
0 commit comments