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