Skip to content

Commit

Permalink
Get rid of useless Find
Browse files Browse the repository at this point in the history
Co-authored-by: Misaka-ZeroTwo <45165615+Misaka-ZeroTwo@users.noreply.github.com>
  • Loading branch information
x3rt and Misaka-ZeroTwo authored Aug 6, 2024
1 parent 9bcdeee commit 443ae27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
new CodeInstruction(OpCodes.Stloc_S, cloud),
});

index = newInstructions.FindLastIndex(x => x.opcode == OpCodes.Ret);
index = newInstructions.Count - 1;

// Scp939.OnPlacedAmnesticCloud(new PlacedAmnesticCloudEventArgs(this.Owner, cloud));
newInstructions.InsertRange(
Expand Down

0 comments on commit 443ae27

Please sign in to comment.