Skip to content

Commit

Permalink
Fix for building dev + TODO than i just seen
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 committed Aug 8, 2024
1 parent e4adebb commit 66146dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// </copyright>
// -----------------------------------------------------------------------

namespace Exiled.Events.EventArgs.Player
namespace Exiled.Events.EventArgs.Player // TODO: Wrong namespace should be Server
{
using API.Features;

Expand Down
2 changes: 1 addition & 1 deletion EXILED/Exiled.Events/Patches/Events/Server/Reporting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
LocalBuilder evReportingCheater = generator.DeclareLocal(typeof(ReportingCheaterEventArgs));

int offset = 2;
int index = newInstructions.FindLastIndex(instruction => instruction.opcode == OpCodes.Ldarg_S && instruction.operand == (object)4) + offset;
int index = newInstructions.FindLastIndex(instruction => instruction.opcode == OpCodes.Ldarg_S && instruction.operand is byte and 4) + offset;

Label ret = generator.DefineLabel();

Expand Down

0 comments on commit 66146dc

Please sign in to comment.