From 3f6bea2631e148f6753e85c1b228f8188340a01d Mon Sep 17 00:00:00 2001 From: Yamato Date: Sun, 23 Feb 2025 16:40:27 +0100 Subject: [PATCH] fix: Fixing UnlockingGenerator --- .../Patches/Events/Player/InteractingGenerator.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/EXILED/Exiled.Events/Patches/Events/Player/InteractingGenerator.cs b/EXILED/Exiled.Events/Patches/Events/Player/InteractingGenerator.cs index 4008b91c6..796e588b8 100644 --- a/EXILED/Exiled.Events/Patches/Events/Player/InteractingGenerator.cs +++ b/EXILED/Exiled.Events/Patches/Events/Player/InteractingGenerator.cs @@ -162,13 +162,9 @@ private static IEnumerable Transpiler(IEnumerable 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[]