CraftSim

CraftSim

2M Downloads

nil check: CraftSimFRAME:UpdateSimModeFrames fails when item has no texture

Znuff opened this issue ยท 3 comments

commented

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
commented

thx

commented

I could not reproduce it in the current version

Is this still a problem?

commented

Have not seen it in a while.