Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator, Widget editors
154
edits
(Made gm4 items easier) |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
local Sprites = { | local Sprites = { | ||
minecraft = sprite:new("inventory"), | minecraft = sprite:new("inventory"), | ||
gm4 = sprite:new("gm4") | gm4 = sprite:new("gm4"), | ||
effect = sprite:new("effect") | |||
} | } | ||
Line 26: | Line 27: | ||
end | end | ||
self.__sprite = UISlot.Decode(item) | |||
Line 33: | Line 35: | ||
function UISlot.Decode(item) | function UISlot.Decode(item) | ||
if not(item) then return nil end | |||
item = mw.text.trim(item) | |||
if item == "" then item = nil end | if item == "" then item = nil end | ||
if item then | if item then |
edits