Skip to content

Commit

Permalink
LocalReporting Exiled should be call before NWAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 committed Jul 31, 2024
1 parent c69fbf5 commit ee011f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXILED/Exiled.Events/Patches/Events/Server/Reporting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
LocalBuilder evLocalReporting = generator.DeclareLocal(typeof(LocalReportingEventArgs));
LocalBuilder evReportingCheater = generator.DeclareLocal(typeof(ReportingCheaterEventArgs));

int offset = -1;
int index = newInstructions.FindIndex(instruction => instruction.opcode == OpCodes.Newarr) + offset;
int offset = 2;
int index = newInstructions.FindLastIndex(instruction => instruction.opcode == OpCodes.Ldarg_S && instruction.operand == (object)4) + offset;

Label ret = generator.DefineLabel();

Expand Down

0 comments on commit ee011f7

Please sign in to comment.