Module:Sprite: Difference between revisions

m
Didn't know what the null check was
(Use of aliases' name value.)
m (Didn't know what the null check was)
Line 154: Line 154:
end
end
if aliases[item].name then
if aliases[item].name ~= nil then
local itemName = aliases[item.name]
local itemName = aliases[item.name]
self:setPosition(self.__source.ids[itemName].pos)
self:setPosition(self.__source.ids[itemName].pos)
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits