badspacebar / sdk

6 stars 3 forks source link

item icons not updating #33

Closed 69sinisterblade69 closed 4 months ago

69sinisterblade69 commented 9 months ago

When item is being built into another, such as stopwatch -> zhonya its icon doesn't update. player:inventorySlot(0).icon will still be stopwatch. Currently only way to 'fix' it is to reload.

badspacebar commented 9 months ago

It should be fixed now

69sinisterblade69 commented 9 months ago

Just checked on newest ver and it still happens. Maybe im just doing something wrong?

local icon = obj:inventorySlot(0).icon
graphics.draw_sprite(icon,vec2(100,100),1,0xFFFFFFFF)

And this is in cb.draw. Is that incorrect? What is the proper way to get item icon?