diff --git a/YesAlready/Features/RetainerItemTransferProgress.cs b/YesAlready/Features/RetainerItemTransferProgress.cs index 8d667fb..18addff 100644 --- a/YesAlready/Features/RetainerItemTransferProgress.cs +++ b/YesAlready/Features/RetainerItemTransferProgress.cs @@ -26,7 +26,7 @@ private static unsafe void AddonUpdate(AddonEvent eventType, AddonArgs addonInfo if (!P.Active || !P.Config.RetainerTransferProgressConfirm) return; if (!GenericHelpers.TryGetAddonMaster(out var am)) return; - if (MemoryHelper.ReadSeStringNullTerminated(new nint(am.Base->AtkValues[0].String)).ToString() == Svc.Data.GetExcelSheet().First(x => x.RowId == 13528).Text) + if (MemoryHelper.ReadSeStringNullTerminated(new nint(am.Base->AtkValues[0].String)).ExtractText() == Svc.Data.GetExcelSheet().First(x => x.RowId == 13528).Text) { PluginLog.Debug("Closing Entrust Duplicates menu"); am.Close(); diff --git a/YesAlready/Features/RetainerTaskResult.cs b/YesAlready/Features/RetainerTaskResult.cs index 5bf6e89..a9725a0 100644 --- a/YesAlready/Features/RetainerTaskResult.cs +++ b/YesAlready/Features/RetainerTaskResult.cs @@ -25,7 +25,7 @@ protected unsafe void AddonSetup(AddonEvent eventType, AddonArgs addonInfo) if (GenericHelpers.TryGetAddonMaster(out var am)) { - var buttonText = am.ReassignButton->ButtonTextNode->NodeText.ToString(); + var buttonText = am.ReassignButton->ButtonTextNode->NodeText.ExtractText(); if (buttonText == Svc.Data.GetExcelSheet(Svc.ClientState.ClientLanguage).GetRow(2365).Text) // Recall return; diff --git a/YesAlready/Features/SelectYesNo.cs b/YesAlready/Features/SelectYesNo.cs index bc001f4..117d195 100644 --- a/YesAlready/Features/SelectYesNo.cs +++ b/YesAlready/Features/SelectYesNo.cs @@ -59,7 +59,7 @@ protected unsafe void AddonSetup(AddonEvent eventType, AddonArgs addonInfo) if (P.Config.AutoCollectable && collectablePatterns.Any(text.Contains)) { PluginLog.Debug($"AddonSelectYesNo: Entry is collectable"); - var fish = GenericHelpers.FindRow(x => !x.Singular.IsEmpty && MemoryHelper.ReadSeStringNullTerminated(new nint(addon.Addon->AtkValues[15].String)).ExtractText().Contains(x.Singular.ToString(), StringComparison.InvariantCultureIgnoreCase)); + var fish = GenericHelpers.FindRow(x => !x.Singular.IsEmpty && MemoryHelper.ReadSeStringNullTerminated(new nint(addon.Addon->AtkValues[15].String)).ExtractText().Contains(x.Singular.ExtractText(), StringComparison.InvariantCultureIgnoreCase)); if (fish != null) { PluginLog.Debug($"Detected fish [{fish}] {fish.Value.Name}");