fix: make murderer work again

This commit is contained in:
Anna 2021-04-05 15:05:49 -04:00
parent 1adda77e22
commit 97f39a3711
1 changed files with 2 additions and 2 deletions

View File

@ -44,10 +44,10 @@ namespace HUD_Manager {
}
// get the list of plugins
var pluginsField = manager.GetType().GetField("Plugins", BindingFlags.Instance | BindingFlags.Public);
var pluginsField = manager.GetType().GetProperty("Plugins", BindingFlags.Instance | BindingFlags.Public);
var plugins = (List<(IDalamudPlugin plugin, PluginDefinition def, DalamudPluginInterface PluginInterface, bool IsRaw)>?) pluginsField?.GetValue(manager);
if (plugins == null) {
PluginLog.LogWarning("Could not kill HudSwap since Plugins field was null");
PluginLog.LogWarning("Could not kill HudSwap since Plugins property was null");
return;
}