stevin05 / CraftScan

MIT License
5 stars 2 forks source link

Fixed bug on Runeforging #35

Closed Merryfett closed 1 month ago

stevin05 commented 1 month ago

A similar check is already there to handle this a few lines after you hit the Lua error. I don't usually open the non-crafting profs, so hadn't realized I broke it by putting the new seen_profs block too soon. Thanks for the report. Will move this block up and get it released as soon as I can log in to make sure it still works.

    if not cur.profession.isPrimaryProfession or not cur.profession.parentProfessionID or not CraftScan.CONST.PROFESSION_DEFAULT_KEYWORDS[cur.profession.parentProfessionID] then
        -- Ignore Cooking, Fishing, gathering professions (we don't have
        -- default keywords for them), and weird 'professions' like Emerald
        -- Dream rep boxes (no parentProfessionID).
        HideSchematicOptions();
        return
    end