Module:Crafting: Difference between revisions

Jump to navigation Jump to search
m
nil check
(this will be undone)
m (nil check)
Line 121: Line 121:
local enchanted = args['enchanted'] or args['Enchanted']
local enchanted = args['enchanted'] or args['Enchanted']
spriteDiv:attr('data-enchanted', enchanted)
spriteDiv:attr('data-enchanted', enchanted)
if enchanted then
if enchanted ~= nil then
spriteDiv:addClass("enchanted")
spriteDiv:addClass("enchanted")
end
end
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,633

edits

Navigation menu