Skip to content

Commit

Permalink
Fixed the difference
Browse files Browse the repository at this point in the history
  • Loading branch information
NotZer0Two committed Nov 23, 2024
1 parent 17ea8a8 commit 8145ac0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
newInstructions[newInstructions.Count - 1].labels.Add(skip);

int offset = 4;
int index = newInstructions.FindIndex(instruction => instruction.Calls(Method(typeof(SubroutineBase), nameof(SubroutineBase.ServerWriteRpc)))) + offset;
int index = newInstructions.FindIndex(x => x.Calls(Method(typeof(SubroutineBase), nameof(SubroutineBase.ServerWriteRpc)))) + offset;

newInstructions.InsertRange(index, new List<CodeInstruction>()
{
Expand Down

0 comments on commit 8145ac0

Please sign in to comment.