Skip to content

Commit 3f6bea2

Browse files
committed
fix: Fixing UnlockingGenerator
1 parent 7abb724 commit 3f6bea2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

EXILED/Exiled.Events/Patches/Events/Player/InteractingGenerator.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,9 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
162162
new CodeInstruction(OpCodes.Nop).WithLabels(skip),
163163
});
164164

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

168-
newInstructions.RemoveRange(index, 7);
169-
170-
offset = -3;
171-
index = newInstructions.FindLastIndex(x => x.operand == (object)Field(typeof(Scp079Generator), nameof(Scp079Generator._unlockCooldownTime))) + offset;
172168
newInstructions.InsertRange(
173169
index,
174170
new[]

0 commit comments

Comments
 (0)