diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-07-31 21:54:46 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-07-31 21:54:46 -0400 |
commit | 17acf248b66861217d48826e77f24cc311b4a22e (patch) | |
tree | 0ad4e6b6957be4313b986c1cd7a8e81ca45da4bb /src/StardewModdingAPI/Program.cs | |
parent | e40de15de0985e21a417ae6bd18ad5d9631b6f98 (diff) | |
download | SMAPI-17acf248b66861217d48826e77f24cc311b4a22e.tar.gz SMAPI-17acf248b66861217d48826e77f24cc311b4a22e.tar.bz2 SMAPI-17acf248b66861217d48826e77f24cc311b4a22e.zip |
prevent mods from accessing SMAPI internals using its own reflection helper (#334)
Diffstat (limited to 'src/StardewModdingAPI/Program.cs')
-rw-r--r-- | src/StardewModdingAPI/Program.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs index 969695aa..b51917d9 100644 --- a/src/StardewModdingAPI/Program.cs +++ b/src/StardewModdingAPI/Program.cs @@ -710,7 +710,7 @@ namespace StardewModdingAPI IMonitor monitor = this.GetSecondaryMonitor(metadata.DisplayName); ICommandHelper commandHelper = new CommandHelper(manifest.UniqueID, metadata.DisplayName, this.CommandManager); IContentHelper contentHelper = new ContentHelper(contentManager, metadata.DirectoryPath, manifest.UniqueID, metadata.DisplayName, monitor); - IReflectionHelper reflectionHelper = new ReflectionHelper(manifest.UniqueID, this.Reflection); + IReflectionHelper reflectionHelper = new ReflectionHelper(manifest.UniqueID, metadata.DisplayName, this.Reflection); IModRegistry modRegistryHelper = new ModRegistryHelper(manifest.UniqueID, this.ModRegistry); ITranslationHelper translationHelper = new TranslationHelper(manifest.UniqueID, manifest.Name, contentManager.GetLocale(), contentManager.GetCurrentLanguage()); |