My custom item became coal, so when I reloaded the plugin, I got the following error.
Hook dispatch failure detected, falling back to reflection based dispatch. System.InvalidProgramException: Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:BaseMelee.ServerUse_Strike_Patch0 (BaseMelee): IL_0186: newobj 0x00000043 at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00094] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.PatchProcessor.Patch () [0x000fc] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) [0x0002a] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at Oxide.Plugins.CustomizableWeapons+Harmony.Patch () [0x000a4] in :0 at Oxide.Plugins.CustomizableWeapons.Loaded () [0x0000b] in :0 at Oxide.Plugins.CustomizableWeapons.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00ded] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0
The invalid raw assembly has been dumped to Plugins/CustomizableWeapons.dump
Failed to initialize plugin 'CustomizableWeapons v1.5.20' (InvalidProgramException: Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:BaseMelee.ServerUse_Strike_Patch0 (BaseMelee): IL_0186: newobj 0x00000043 ) at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00107] in :0 at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x000cf] in <795304323ac74a298b8ed190a1dfa739>:0