Browse Source

Fixed NullReferenceException in StateTransitionTransaction.Commit when no PluginEnabled or PluginDisabled subscriptions exist

4.0.0-beta
Anairkoen Schno 4 years ago
parent
commit
74387184da
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      IPA.Loader/Loader/PluginManager.cs

+ 2
- 2
IPA.Loader/Loader/PluginManager.cs View File

@ -133,7 +133,7 @@ namespace IPA.Loader
PluginLoader.DisabledPlugins.Remove(meta);
DisabledConfig.Instance.DisabledModIds.Remove(meta.Id ?? meta.Name);
PluginEnabled(meta, meta.RuntimeOptions != RuntimeOptions.DynamicInit);
PluginEnabled?.Invoke(meta, meta.RuntimeOptions != RuntimeOptions.DynamicInit);
if (meta.RuntimeOptions == RuntimeOptions.DynamicInit)
{
@ -175,7 +175,7 @@ namespace IPA.Loader
_bsPlugins.Remove(exec);
}
PluginDisabled(exec.Metadata, exec.Metadata.RuntimeOptions != RuntimeOptions.DynamicInit);
PluginDisabled?.Invoke(exec.Metadata, exec.Metadata.RuntimeOptions != RuntimeOptions.DynamicInit);
}
var disableStructure = disableExecs.Select(MakeDisableExec);


Loading…
Cancel
Save