Module:Crafting: Difference between revisions

m
remove the debug tool
m (Maybe this is a better nil check)
m (remove the debug tool)
Line 120: Line 120:


local enchanted = args['enchanted'] or args['Enchanted']
local enchanted = args['enchanted'] or args['Enchanted']
spriteDiv:attr('data-enchanted', enchanted)
if enchanted and #enchanted ~= 0 then
if enchanted and #enchanted ~= 0 then
spriteDiv:addClass("enchanted")
spriteDiv:addClass("enchanted")
184

edits