Error when talking to a Mount Vendor in CLASSIC WoW #1

Closed
by Taryble opened 2 years ago · 2 comments
Taryble commented 2 years ago (Migrated from gogs.sergio.am)
Owner

On Classic Live server, this throws an error when the vendor has any items that would be shaded by the frames\RowShader.lua file AND are classified as "Misc" items (ItemType 15/"MISC").

Commenting out the line in frames\RowShader.lua fixes the issue.

local function Knowable(link)
local id = ns.ids[link]
if not id then return false end

local _, _, _, _, _, class, _, _, _, texture = GetItemInfo(link)
-- Next line is where the error happens
-- if class == MISC and select(2, C_ToyBox.GetToyInfo(id)) then return true end
if class == RECIPE or GARRISON_ICONS[texture] then return true end
end
On Classic Live server, this throws an error when the vendor has any items that would be shaded by the frames\RowShader.lua file AND are classified as "Misc" items (ItemType 15/"MISC"). Commenting out the line in frames\RowShader.lua fixes the issue. ```lua local function Knowable(link) local id = ns.ids[link] if not id then return false end local _, _, _, _, _, class, _, _, _, texture = GetItemInfo(link) -- Next line is where the error happens -- if class == MISC and select(2, C_ToyBox.GetToyInfo(id)) then return true end if class == RECIPE or GARRISON_ICONS[texture] then return true end end ```
code commented 2 years ago (Migrated from gogs.sergio.am)
Poster
Owner
<a href="/code/GnomishVendorShrinker/commit/47c7fd85817d9d0e0fd963c6b759564940262ab7">C_ToyBox doesn't exists in Classic. Fix #1...</a>
code commented 2 years ago (Migrated from gogs.sergio.am)
Poster
Owner

Thank you! code pushed, I'll update the release package at home.

Thank you! code pushed, I'll update the release package at home.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.