diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-07-02 20:41:21 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-07-02 20:41:21 -0400 |
commit | 82ca09ead7316486f7cd6fc2bc7879d94902bf90 (patch) | |
tree | dfeb63c9d8919ae61b2c2f2d3f514642fb8590d7 /src | |
parent | aa13941dd7bceb8f619cd96f61d954c8aed55502 (diff) | |
download | SMAPI-82ca09ead7316486f7cd6fc2bc7879d94902bf90.tar.gz SMAPI-82ca09ead7316486f7cd6fc2bc7879d94902bf90.tar.bz2 SMAPI-82ca09ead7316486f7cd6fc2bc7879d94902bf90.zip |
fix 'missing assembly' errors raised for some .NET Framework types (#356)
Diffstat (limited to 'src')
-rw-r--r-- | src/SMAPI/Framework/ModLoading/AssemblyLoader.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs b/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs index 2f6130de..37b1a378 100644 --- a/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs +++ b/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs @@ -103,7 +103,7 @@ namespace StardewModdingAPI.Framework.ModLoading // detect broken assembly reference foreach (AssemblyNameReference reference in assembly.Definition.MainModule.AssemblyReferences) { - if (!this.IsAssemblyLoaded(reference)) + if (!reference.Name.StartsWith("System.") && !this.IsAssemblyLoaded(reference)) { this.Monitor.LogOnce(loggedMessages, $" Broken code in {assembly.File.Name}: reference to missing assembly '{reference.FullName}'."); if (!assumeCompatible) |