nil check: CraftSimFRAME:UpdateSimModeFrames fails when item has no texture
Znuff opened this issue ยท 3 comments
Trace:
3x Usage: self:SetNormalTexture(asset)
[string "=[C]"]: in function `SetNormalTexture'
[string "@CraftSim/Frames.lua"]:1310: in function `UpdateSimModeFrames'
[string "@CraftSim/SimMode.lua"]:71: in function `InitSimModeData'
[string "@CraftSim/CraftSim.lua"]:343: in function `TriggerModulesByRecipeType'
[string "@CraftSim/CraftSim.lua"]:100: in function <CraftSim/CraftSim.lua:99>
This should fix it:
if itemData.itemTexture then
inputFrame.icon:SetNormalTexture(itemData.itemTexture)
end