diff --git a/Glamaholic/Ui/Helpers/TryOnHelper.cs b/Glamaholic/Ui/Helpers/TryOnHelper.cs index 6362963..013f3c6 100755 --- a/Glamaholic/Ui/Helpers/TryOnHelper.cs +++ b/Glamaholic/Ui/Helpers/TryOnHelper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Linq; using System.Runtime.InteropServices; using FFXIVClientStructs.FFXIV.Client.System.Framework; using FFXIVClientStructs.FFXIV.Client.UI.Agent; @@ -28,7 +29,7 @@ namespace Glamaholic.Ui.Helpers { return; } - var right = this.Ui.Plugin.Interface.PluginInternalNames.Contains("ItemSearchPlugin"); + var right = this.Ui.Plugin.Interface.InstalledPlugins.Any(state => state.InternalName == "ItemSearchPlugin"); HelperUtil.DrawHelper(tryOnAddon, "glamaholic-helper-try-on", right, this.DrawDropdown); } @@ -48,7 +49,7 @@ namespace Glamaholic.Ui.Helpers { private static unsafe Dictionary GetTryOnItems() { var agent = (IntPtr) Framework.Instance()->GetUiModule()->GetAgentModule()->GetAgentByInternalId(AgentId.Tryon); - var firstItem = agent + 0x2E8; + var firstItem = agent + 0x314; var items = new Dictionary();