Module:Sprite: Difference between revisions

m
Oh I'm dumb, that was just a index mistake
m (Didn't know what the null check was)
m (Oh I'm dumb, that was just a index mistake)
Line 155: Line 155:
if aliases[item].name ~= nil 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)
if self.__source.ids[itenName].spriteSheet then
if self.__source.ids[itenName].spriteSheet then
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits