diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-23 22:50:35 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-23 22:50:35 -0400 |
commit | 33af789e2eb4da101cead531b77c29ecf4933549 (patch) | |
tree | 6c7801b548345514fcc47853ac4d79a402a178a9 /src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs | |
parent | 9495cc0f493a11960aa23551e164018681d08f79 (diff) | |
download | SMAPI-33af789e2eb4da101cead531b77c29ecf4933549.tar.gz SMAPI-33af789e2eb4da101cead531b77c29ecf4933549.tar.bz2 SMAPI-33af789e2eb4da101cead531b77c29ecf4933549.zip |
abstract mod IDs with multiple variants (#361)
Diffstat (limited to 'src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs')
-rw-r--r-- | src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs b/src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs index 2da10348..3674faec 100644 --- a/src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs +++ b/src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs @@ -64,7 +64,7 @@ namespace StardewModdingAPI.Framework.ModLoading dataRecord = ( from mod in dataRecords where - mod.ID.Any(p => p.Matches(key, manifest)) + mod.ID.Matches(key, manifest) && (mod.LowerVersion == null || !manifest.Version.IsOlderThan(mod.LowerVersion)) && (mod.UpperVersion == null || !manifest.Version.IsNewerThan(mod.UpperVersion)) select mod |