uses `proxy.Name` instead of `target.Name` (which makes more sense in this context)
This commit is contained in:
parent
5b5304403b
commit
5a92b0cd35
|
@ -133,7 +133,7 @@ namespace StardewModdingAPI.Framework.Reflection
|
||||||
/// <param name="instanceField">The proxy field containing the API instance.</param>
|
/// <param name="instanceField">The proxy field containing the API instance.</param>
|
||||||
private void ProxyMethod(TypeBuilder proxyBuilder, MethodInfo proxy, MethodInfo target, FieldBuilder instanceField)
|
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
|
// set up generic arguments
|
||||||
Type[] proxyGenericArguments = proxy.GetGenericArguments();
|
Type[] proxyGenericArguments = proxy.GetGenericArguments();
|
||||||
|
|
Loading…
Reference in New Issue