summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-05-18 23:11:17 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-05-18 23:11:17 -0400
commitf96dde00f98a913557617f716673f1af355cc6b5 (patch)
tree33deb3fc614ffb346415b7afdc7ad45f510c0bd4 /src/SMAPI/Framework
parentd1bf3d52352df4bb720cf0fa87dcd6a64f35446a (diff)
downloadSMAPI-f96dde00f98a913557617f716673f1af355cc6b5.tar.gz
SMAPI-f96dde00f98a913557617f716673f1af355cc6b5.tar.bz2
SMAPI-f96dde00f98a913557617f716673f1af355cc6b5.zip
fix some type references not being rewritten (#711)
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r--src/SMAPI/Framework/ModLoading/Framework/BaseTypeFinder.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ModLoading/Framework/BaseTypeFinder.cs b/src/SMAPI/Framework/ModLoading/Framework/BaseTypeFinder.cs
index 04b2e08d..8c85b6a5 100644
--- a/src/SMAPI/Framework/ModLoading/Framework/BaseTypeFinder.cs
+++ b/src/SMAPI/Framework/ModLoading/Framework/BaseTypeFinder.cs
@@ -125,6 +125,10 @@ namespace StardewModdingAPI.Framework.ModLoading.Framework
return true;
}
+ // type reference
+ if (instruction.Operand is TypeReference typeRef && this.IsMatch(typeRef))
+ return true;
+
return false;
}