summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Program.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-07-07 11:44:18 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-07-07 11:44:18 -0400
commit053c0577eccef3db3397a935863af79b30a0282f (patch)
tree058b6afc8855c1e492b440ff36efd327586e0cd1 /src/StardewModdingAPI/Program.cs
parentf033b5a2f72b96168f6e20e96fa50742e70b01d6 (diff)
downloadSMAPI-053c0577eccef3db3397a935863af79b30a0282f.tar.gz
SMAPI-053c0577eccef3db3397a935863af79b30a0282f.tar.bz2
SMAPI-053c0577eccef3db3397a935863af79b30a0282f.zip
add mod ID to mod helpers (#318)
Diffstat (limited to 'src/StardewModdingAPI/Program.cs')
-rw-r--r--src/StardewModdingAPI/Program.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs
index 97bc0256..66ed0a85 100644
--- a/src/StardewModdingAPI/Program.cs
+++ b/src/StardewModdingAPI/Program.cs
@@ -703,8 +703,8 @@ namespace StardewModdingAPI
// inject data
mod.ModManifest = manifest;
- var reflectionHelper = new ReflectionHelper(this.Reflection);
- mod.Helper = new ModHelper(metadata.DisplayName, metadata.DirectoryPath, jsonHelper, this.ModRegistry, this.CommandManager, contentManager, reflectionHelper);
+ var reflectionHelper = new ReflectionHelper(manifest.UniqueID, this.Reflection);
+ mod.Helper = new ModHelper(manifest.UniqueID, metadata.DisplayName, metadata.DirectoryPath, jsonHelper, this.ModRegistry, this.CommandManager, contentManager, reflectionHelper);
mod.Monitor = this.GetSecondaryMonitor(metadata.DisplayName);
#if !SMAPI_2_0
mod.PathOnDisk = metadata.DirectoryPath;