From eb39f3d5ea28f004ab352113d869ae6d7772bcd5 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 16 Nov 2016 17:52:49 -0500 Subject: use interface for IModHelper --- src/StardewModdingAPI/Framework/DeprecationManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/StardewModdingAPI/Framework') diff --git a/src/StardewModdingAPI/Framework/DeprecationManager.cs b/src/StardewModdingAPI/Framework/DeprecationManager.cs index 4de92bca..044c2a40 100644 --- a/src/StardewModdingAPI/Framework/DeprecationManager.cs +++ b/src/StardewModdingAPI/Framework/DeprecationManager.cs @@ -112,9 +112,10 @@ namespace StardewModdingAPI.Framework /// The type to check. /// The base type which declares the virtual method. /// The method name. - public bool IsVirtualMethodImplemented(Type subtype, Type baseType, string name) + /// The expected argument types. + internal bool IsVirtualMethodImplemented(Type subtype, Type baseType, string name, Type[] argumentTypes) { - MethodInfo method = subtype.GetMethod(nameof(Mod.Entry), new[] { typeof(object[]) }); + MethodInfo method = subtype.GetMethod(nameof(Mod.Entry), argumentTypes); return method.DeclaringType != baseType; } } -- cgit