summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModLoading/Rewriters/MethodParentRewriter.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-06-24 19:49:34 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-06-24 19:49:34 -0400
commitebc603844a3931bedbd512761ba8f152a4f5a09c (patch)
treebdf4744868a9899eaa015091a0d1c57813b3fb86 /src/SMAPI/Framework/ModLoading/Rewriters/MethodParentRewriter.cs
parent1c10e54d050b0b3c869992848b912962da0b8304 (diff)
downloadSMAPI-ebc603844a3931bedbd512761ba8f152a4f5a09c.tar.gz
SMAPI-ebc603844a3931bedbd512761ba8f152a4f5a09c.tar.bz2
SMAPI-ebc603844a3931bedbd512761ba8f152a4f5a09c.zip
update to Mono.Cecil 0.10
Diffstat (limited to 'src/SMAPI/Framework/ModLoading/Rewriters/MethodParentRewriter.cs')
-rw-r--r--src/SMAPI/Framework/ModLoading/Rewriters/MethodParentRewriter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModLoading/Rewriters/MethodParentRewriter.cs b/src/SMAPI/Framework/ModLoading/Rewriters/MethodParentRewriter.cs
index 974fcf4c..99bd9125 100644
--- a/src/SMAPI/Framework/ModLoading/Rewriters/MethodParentRewriter.cs
+++ b/src/SMAPI/Framework/ModLoading/Rewriters/MethodParentRewriter.cs
@@ -64,7 +64,7 @@ namespace StardewModdingAPI.Framework.ModLoading.Rewriters
return InstructionHandleResult.None;
MethodReference methodRef = (MethodReference)instruction.Operand;
- methodRef.DeclaringType = module.Import(this.ToType);
+ methodRef.DeclaringType = module.ImportReference(this.ToType);
return InstructionHandleResult.Rewritten;
}