diff --git a/Harmony/Public/PatchProcessor.cs b/Harmony/Public/PatchProcessor.cs index 355992f3..9e67de1b 100644 --- a/Harmony/Public/PatchProcessor.cs +++ b/Harmony/Public/PatchProcessor.cs @@ -6,6 +6,7 @@ using System.Reflection.Emit; using HarmonyLib.Internal.Patching; using HarmonyLib.Public.Patching; +using HarmonyLib.Tools; namespace HarmonyLib { @@ -130,10 +131,7 @@ public MethodInfo Patch() throw new NullReferenceException($"Null method for {instance.Id}"); if (original.IsDeclaredMember() is false) - { - var declaredMember = original.GetDeclaredMember(); - throw new ArgumentException($"You can only patch implemented methods/constructors. Path the declared method {declaredMember.FullDescription()} instead."); - } + Logger.Log(Logger.LogChannel.Warn, () => $"{instance.Id}: You should only patch implemented methods/constructors to avoid issues. Path the declared method {original.GetDeclaredMember().FullDescription()} instead of {original.FullDescription()}."); lock (locker) {