diff options
author | Shockah <me@shockah.pl> | 2022-02-08 22:36:34 +0100 |
---|---|---|
committer | Shockah <me@shockah.pl> | 2022-02-08 22:36:34 +0100 |
commit | 5a92b0cd357776eebb88e001384f9ca1ccdb7d5c (patch) | |
tree | e2b3d2f0df91a12fb1e4cb09a5927172f20adac2 /src/SMAPI/Framework | |
parent | 5b5304403b79ce09bd06d1c4b52b67427069b772 (diff) | |
download | SMAPI-5a92b0cd357776eebb88e001384f9ca1ccdb7d5c.tar.gz SMAPI-5a92b0cd357776eebb88e001384f9ca1ccdb7d5c.tar.bz2 SMAPI-5a92b0cd357776eebb88e001384f9ca1ccdb7d5c.zip |
uses `proxy.Name` instead of `target.Name` (which makes more sense in this context)
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r-- | src/SMAPI/Framework/Reflection/InterfaceProxyBuilder.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Reflection/InterfaceProxyBuilder.cs b/src/SMAPI/Framework/Reflection/InterfaceProxyBuilder.cs index 4c154679..5ae96dff 100644 --- a/src/SMAPI/Framework/Reflection/InterfaceProxyBuilder.cs +++ b/src/SMAPI/Framework/Reflection/InterfaceProxyBuilder.cs @@ -133,7 +133,7 @@ namespace StardewModdingAPI.Framework.Reflection /// <param name="instanceField">The proxy field containing the API instance.</param> private void ProxyMethod(TypeBuilder proxyBuilder, MethodInfo proxy, MethodInfo target, FieldBuilder instanceField) { - MethodBuilder methodBuilder = proxyBuilder.DefineMethod(target.Name, MethodAttributes.Public | MethodAttributes.Final | MethodAttributes.Virtual); + MethodBuilder methodBuilder = proxyBuilder.DefineMethod(proxy.Name, MethodAttributes.Public | MethodAttributes.Final | MethodAttributes.Virtual); // set up generic arguments Type[] proxyGenericArguments = proxy.GetGenericArguments(); |