Skip to content

Commit

Permalink
Requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Banalny-Banan committed Dec 2, 2024
1 parent b9140bf commit 4d0061e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions EXILED/Exiled.Events/Patches/Events/Player/Shooting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
IL_007f: callvirt instance void class [mscorlib]System.Action`1<class ReferenceHub>::Invoke(!0/*class ReferenceHub* /)
*/
int hasTargetIndex = newInstructions.FindIndex(instruction => instruction.IsLdarg(2));
List<Label> hasTargetLabels = newInstructions[hasTargetIndex].ExtractLabels();

/*
[] <= Here
Expand Down Expand Up @@ -91,7 +90,6 @@ CodeInstruction[] GetInstructions(Label continueLabel) =>
newInstructions.InsertRange(
hasTargetIndex,
patchInstructions2);
newInstructions[hasTargetIndex].WithLabels(hasTargetLabels);

newInstructions[newInstructions.Count - 1].WithLabels(returnLabel);

Expand Down

0 comments on commit 4d0061e

Please sign in to comment.