Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
2,564
edits
mNo edit summary |
m (check if lore/name is nil before checking length) |
||
Line 85: | Line 85: | ||
local name = args['name'] or args['Name'] or args['title'] or args['Title'] | local name = args['name'] or args['Name'] or args['title'] or args['Title'] | ||
if #name ~= 0 then | if name and #name ~= 0 then | ||
sprite:SetTitle(name) | sprite:SetTitle(name) | ||
end | end | ||
local lore = args['lore'] or args['Lore'] or args['text'] or args['Text'] | local lore = args['lore'] or args['Lore'] or args['text'] or args['Text'] | ||
if #lore ~= 0 then | if lore and #lore ~= 0 then | ||
sprite:SetLore(lore) | sprite:SetLore(lore) | ||
end | end | ||
Line 155: | Line 155: | ||
local name = args['name'] or args['Name'] or args['title'] or args['Title'] | local name = args['name'] or args['Name'] or args['title'] or args['Title'] | ||
if #name ~= 0 then | if name and #name ~= 0 then | ||
sprite:SetTitle(name) | sprite:SetTitle(name) | ||
end | end | ||
local lore = args['lore'] or args['Lore'] or args['text'] or args['Text'] | local lore = args['lore'] or args['Lore'] or args['text'] or args['Text'] | ||
if #lore ~= 0 then | if lore and #lore ~= 0 then | ||
sprite:SetLore(lore) | sprite:SetLore(lore) | ||
end | end |
edits