From fe44106550c29ea105dab4fb93d62ab71277ee17 Mon Sep 17 00:00:00 2001 From: Undid-Iridium <24619207+Undid-Iridium@users.noreply.github.com> Date: Fri, 9 Aug 2024 03:04:22 -0400 Subject: [PATCH] Fixes issue --- .../Patches/Events/Scp330/InteractingScp330.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/EXILED/Exiled.Events/Patches/Events/Scp330/InteractingScp330.cs b/EXILED/Exiled.Events/Patches/Events/Scp330/InteractingScp330.cs index d9355e870..190595d2c 100644 --- a/EXILED/Exiled.Events/Patches/Events/Scp330/InteractingScp330.cs +++ b/EXILED/Exiled.Events/Patches/Events/Scp330/InteractingScp330.cs @@ -26,7 +26,7 @@ namespace Exiled.Events.Patches.Events.Scp330 /// Patches the method to add the /// event. /// - [EventPatch(typeof(Scp330), nameof(Scp330.InteractingScp330))] + // [EventPatch(typeof(Scp330), nameof(Scp330.InteractingScp330))] [HarmonyPatch(typeof(Scp330Interobject), nameof(Scp330Interobject.ServerInteract))] public static class InteractingScp330 { @@ -36,6 +36,7 @@ private static IEnumerable Transpiler(IEnumerable Transpiler(IEnumerable instruction.Calls(Method(typeof(Scp330Interobject), nameof(Scp330Interobject.RpcMakeSound)))) + addShouldSeverOffset; int serverEffectLocationStart = -1; int enableEffect = newInstructions.FindLastIndex( instruction => instruction.LoadsField(Field(typeof(ReferenceHub), nameof(ReferenceHub.playerEffectsController)))) + serverEffectLocationStart; - + newInstructions[enableEffect].WithLabels(enableEffectLabel); newInstructions.InsertRange( addShouldSeverIndex, new[] @@ -91,7 +92,7 @@ private static IEnumerable Transpiler(IEnumerable