diff --git a/IPA.Loader/Loader/PluginInitInjector.cs b/IPA.Loader/Loader/PluginInitInjector.cs index 3c669515..c7b42f43 100644 --- a/IPA.Loader/Loader/PluginInitInjector.cs +++ b/IPA.Loader/Loader/PluginInitInjector.cs @@ -36,14 +36,17 @@ namespace IPA.Loader /// /// /// - /// - /// A object for the plugin being injected. + /// A object for the plugin being injected. /// /// These parameters may have and to control /// how it is constructed. /// /// /// + /// + /// + /// The instance which should be used for any potentially dangerous files. + /// /// /// For all of the default injectors, only one of each will be generated, and any later parameters will recieve the same value as the first one. /// @@ -202,10 +205,7 @@ namespace IPA.Loader var val = pair.Inject(prev, param, meta, provider); - if (previousValues.ContainsKey(pair)) - previousValues[pair] = val; - else - previousValues.Add(pair, val); + previousValues[pair] = val; if (val == null) continue; value = val;