Skip to content

Commit 5a599ff

Browse files
committed
fix: Handcuffing / RemovingHandcuff events
1 parent 07d8557 commit 5a599ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EXILED/Exiled.Events/Patches/Events/Player/ProcessDisarmMessage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)