Skip to content

Commit 7fd35e7

Browse files
committed
FixDamagingWindow index
1 parent cca4cef commit 7fd35e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
4040
Label ret = generator.DefineLabel();
4141

4242
int offset = -5;
43-
int index = newInstructions.FindLastIndex(instruction => instruction.opcode == OpCodes.Newobj) + offset;
43+
int index = newInstructions.FindIndex(instruction => instruction.opcode == OpCodes.Newobj) + offset;
4444

4545
newInstructions.InsertRange(
4646
index,

0 commit comments

Comments
 (0)