summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Reflection/InterfaceProxyFactory.cs
diff options
context:
space:
mode:
authorShockah <me@shockah.pl>2022-02-10 11:43:35 +0100
committerShockah <me@shockah.pl>2022-02-10 11:43:35 +0100
commit07259452170a253c44d5c2be68fc2342a88d2504 (patch)
treebb8b4c634db71f5b1f5c7e14539c58954aed9356 /src/SMAPI/Framework/Reflection/InterfaceProxyFactory.cs
parent61415e41eb8f5f61e8b241255162257191c0a766 (diff)
downloadSMAPI-07259452170a253c44d5c2be68fc2342a88d2504.tar.gz
SMAPI-07259452170a253c44d5c2be68fc2342a88d2504.tar.bz2
SMAPI-07259452170a253c44d5c2be68fc2342a88d2504.zip
add proxy instance caching
Diffstat (limited to 'src/SMAPI/Framework/Reflection/InterfaceProxyFactory.cs')
-rw-r--r--src/SMAPI/Framework/Reflection/InterfaceProxyFactory.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Reflection/InterfaceProxyFactory.cs b/src/SMAPI/Framework/Reflection/InterfaceProxyFactory.cs
index 72b4254c..daeac2ad 100644
--- a/src/SMAPI/Framework/Reflection/InterfaceProxyFactory.cs
+++ b/src/SMAPI/Framework/Reflection/InterfaceProxyFactory.cs
@@ -42,7 +42,7 @@ namespace StardewModdingAPI.Framework.Reflection
// create instance
InterfaceProxyBuilder builder = this.ObtainBuilder(instance.GetType(), typeof(TInterface), sourceModID, targetModID);
- return (TInterface)builder.CreateInstance(instance, this);
+ return (TInterface)builder.ObtainInstance(instance, this);
}
internal InterfaceProxyBuilder ObtainBuilder(Type targetType, Type interfaceType, string sourceModID, string targetModID)