diff --git a/EXILED/Exiled.Events/Patches/Fixes/ServerSideDancesPatch.cs b/EXILED/Exiled.Events/Patches/Fixes/ServerSideDancesPatch.cs index cc4f47de7..114f14c0a 100644 --- a/EXILED/Exiled.Events/Patches/Fixes/ServerSideDancesPatch.cs +++ b/EXILED/Exiled.Events/Patches/Fixes/ServerSideDancesPatch.cs @@ -40,7 +40,7 @@ private static IEnumerable Transpiler(IEnumerable instruction.Calls(Method(typeof(SubroutineBase), nameof(SubroutineBase.ServerWriteRpc)))) + offset; + int index = newInstructions.FindIndex(x => x.Calls(Method(typeof(SubroutineBase), nameof(SubroutineBase.ServerWriteRpc)))) + offset; newInstructions.InsertRange(index, new List() {