[ERROR] [Exiled.Loader] Plugin "ScpChatExtensions" threw an exception while enabling: HarmonyLib.HarmonyException: Patching exception in method static System.Void VoiceChat.Networking.VoiceTransceiver::ServerReceiveMessage(Mirror.NetworkConnection conn, VoiceChat.Networking.VoiceMessage msg) ---> System.FormatException: Method static System.Void VoiceChat.Networking.VoiceTransceiver::ServerReceiveMessage(Mirror.NetworkConnection conn, VoiceChat.Networking.VoiceMessage msg) cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) VoiceChat.Networking.VoiceTransceiver:VoiceChat.Networking.VoiceTransceiver.ServerReceiveMessage_Patch0 (Mirror.NetworkConnection,VoiceChat.Networking.VoiceMessage): IL_00fd: ceq
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x0008c] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000bb] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
--- End of inner exception stack trace ---
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0010f] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x00093] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at HarmonyLib.Harmony.PatchAll () [0x0001b] in <0020ee40255b4dc7a0eb8b2a76225b38>:0
at ScpChatExtension.EntryPoint.OnEnabled () [0x00021] in <e5eb43ba049240a59db030e31bf7b201>:0
at Exiled.Loader.Loader.EnablePlugins () [0x000c6] in <df54a40efbb34c42bc750c9df186839d>:0
Instructions, that causes exception:
// if (voiceChatChannel != VoiceChatChannel.ScpChat) skip;
new (OpCodes.Ldloc_2),
new (OpCodes.Ldc_I4_3),
new (OpCodes.Ceq),
new (OpCodes.Brfalse_S, skip),
Error, when trying to patch:
Instructions, that causes exception:
Can't fix it myself, don't enough knowledge.