diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-11-30 22:44:40 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-11-30 22:44:40 -0500 |
commit | 44dfb6fac5650aa2c10cc76832d836a440ad8a2d (patch) | |
tree | 16e054ffc01526d180fc6601ad876dec7a38da5e /src/StardewModdingAPI/Framework | |
parent | 0fcf29d42854017b1c0b0a2aa4f6a148be6c4ddf (diff) | |
download | SMAPI-44dfb6fac5650aa2c10cc76832d836a440ad8a2d.tar.gz SMAPI-44dfb6fac5650aa2c10cc76832d836a440ad8a2d.tar.bz2 SMAPI-44dfb6fac5650aa2c10cc76832d836a440ad8a2d.zip |
fix assembly resolution failing for rewritten mods that reference a different version of Json.NET (#166)
Diffstat (limited to 'src/StardewModdingAPI/Framework')
-rw-r--r-- | src/StardewModdingAPI/Framework/ModAssemblyLoader.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/StardewModdingAPI/Framework/ModAssemblyLoader.cs b/src/StardewModdingAPI/Framework/ModAssemblyLoader.cs index e095cde8..6c5e6032 100644 --- a/src/StardewModdingAPI/Framework/ModAssemblyLoader.cs +++ b/src/StardewModdingAPI/Framework/ModAssemblyLoader.cs @@ -103,10 +103,9 @@ namespace StardewModdingAPI.Framework } /// <summary>Resolve an assembly from its name.</summary> - /// <param name="name">The assembly name.</param> - public Assembly ResolveAssembly(string name) + /// <param name="shortName">The short assembly name.</param> + public Assembly ResolveAssembly(string shortName) { - string shortName = name.Split(new[] { ',' }, 2).First(); return this.AssemblyMap.Targets.FirstOrDefault(p => p.GetName().Name == shortName); } |