summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-05-20 00:53:46 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-05-20 00:53:46 -0400
commit71a11337d6e51a1d95d3a40634f2ce319c330c33 (patch)
treeb9a146fbbc584113499f1642ad8001ef79f43e79 /src
parentb54d892abf2bb5b7c05631d6f665b2a1d06529b1 (diff)
downloadSMAPI-71a11337d6e51a1d95d3a40634f2ce319c330c33.tar.gz
SMAPI-71a11337d6e51a1d95d3a40634f2ce319c330c33.tar.bz2
SMAPI-71a11337d6e51a1d95d3a40634f2ce319c330c33.zip
ignore special types (#711)
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs b/src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs
index 4c707248..5f7c2128 100644
--- a/src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs
+++ b/src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs
@@ -61,6 +61,9 @@ namespace StardewModdingAPI.Framework.ModLoading.Framework
foreach (TypeDefinition type in this.Module.GetTypes())
{
+ if (type.BaseType == null)
+ continue; // special type like <Module>
+
anyRewritten |= this.RewriteCustomAttributes(type.CustomAttributes);
anyRewritten |= this.RewriteGenericParameters(type.GenericParameters);