summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Program.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-24 00:23:48 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-24 00:23:48 -0400
commit0863f9b7e5f165f2b1db8750b20ed35bc0c3701a (patch)
tree30f7f83e6c699c03081067b01b3fd62a2846e6fc /src/StardewModdingAPI/Program.cs
parent33af789e2eb4da101cead531b77c29ecf4933549 (diff)
downloadSMAPI-0863f9b7e5f165f2b1db8750b20ed35bc0c3701a.tar.gz
SMAPI-0863f9b7e5f165f2b1db8750b20ed35bc0c3701a.tar.bz2
SMAPI-0863f9b7e5f165f2b1db8750b20ed35bc0c3701a.zip
revamp mod compatibility fields to allow broader use of mod data records (#361)
Diffstat (limited to 'src/StardewModdingAPI/Program.cs')
-rw-r--r--src/StardewModdingAPI/Program.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs
index 63176dd1..4860968c 100644
--- a/src/StardewModdingAPI/Program.cs
+++ b/src/StardewModdingAPI/Program.cs
@@ -640,7 +640,7 @@ namespace StardewModdingAPI
Assembly modAssembly;
try
{
- modAssembly = modAssemblyLoader.Load(metadata, assemblyPath, assumeCompatible: metadata.DataRecord?.Status == ModStatus.AssumeCompatible);
+ modAssembly = modAssemblyLoader.Load(metadata, assemblyPath, assumeCompatible: metadata.DataRecord.GetCompatibility(metadata.Manifest.Version)?.Status == ModStatus.AssumeCompatible);
}
catch (IncompatibleInstructionException ex)
{