Skip to content

Commit

Permalink
fix: Fixing UnlockingGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 committed Feb 23, 2025
1 parent 7abb724 commit 3f6bea2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,9 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
new CodeInstruction(OpCodes.Nop).WithLabels(skip),
});

offset = -5;
offset = -6;
index = newInstructions.FindLastIndex(instruction => instruction.Calls(Method(typeof(Scp079Generator), nameof(Scp079Generator.RpcDenied)))) + offset;

newInstructions.RemoveRange(index, 7);

offset = -3;
index = newInstructions.FindLastIndex(x => x.operand == (object)Field(typeof(Scp079Generator), nameof(Scp079Generator._unlockCooldownTime))) + offset;
newInstructions.InsertRange(
index,
new[]
Expand Down

0 comments on commit 3f6bea2

Please sign in to comment.