v1.0.8.11: Hotbar tooltip crash fix (Lumina GetRow)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-10 21:37:10 -05:00
parent 2ac48bbd81
commit 346969835a
5 changed files with 21 additions and 5 deletions
@@ -1152,6 +1152,19 @@ namespace HSUI.Interface.GeneralElements
}
private static unsafe (string title, string text) GetSlotTooltip(ActionBarsManager.SlotInfo slot)
{
try
{
return GetSlotTooltipCore(slot);
}
catch
{
// Lumina GetRow can throw for invalid/transitional row IDs (e.g. during inventory drag-drop)
return ("", "");
}
}
private static unsafe (string title, string text) GetSlotTooltipCore(ActionBarsManager.SlotInfo slot)
{
// GeneralAction uses a different ID space: GeneralAction 7 = Teleport links to Action 5. Look up via GeneralAction sheet.
if (slot.SlotType == RaptureHotbarModule.HotbarSlotType.GeneralAction)