Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 committed Aug 8, 2024
1 parent a82c610 commit e4adebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXILED/Exiled.Events/Patches/Events/Player/Escaping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
{
OpCode opcode = newInstructions[i].opcode;
if (opcode == OpCodes.Stloc_0)
newInstructions[i] = new(OpCodes.Stloc_S, fpcRole.LocalIndex);
newInstructions[i] = new CodeInstruction(OpCodes.Stloc_S, fpcRole.LocalIndex).WithLabels(newInstructions[i].labels);
else if (opcode == OpCodes.Ldloc_0)
newInstructions[i] = new(OpCodes.Ldloc_S, fpcRole.LocalIndex);
newInstructions[i] = new CodeInstruction(OpCodes.Ldloc_S, fpcRole.LocalIndex).WithLabels(newInstructions[i].labels);
else if (opcode == OpCodes.Ldc_I4_0 && i > customExit)
newInstructions[i].opcode = OpCodes.Ldc_I4_5;
}
Expand Down

0 comments on commit e4adebb

Please sign in to comment.