diff options
author | Alexander Weber <web.alexander@web.de> | 2017-06-16 23:16:22 +0200 |
---|---|---|
committer | Alexander Weber <web.alexander@web.de> | 2017-06-16 23:16:22 +0200 |
commit | 8d991881aad4bc1ce02903c02297fadb45c8e915 (patch) | |
tree | d76274795a942911fb8be883dea0b595e7da5509 /skinlist.lua | |
parent | 28d28390ce5d67f47db184cbbbc4ecd74be77eb2 (diff) |
get the new api working with sfinv and 3d_armor
Diffstat (limited to 'skinlist.lua')
-rw-r--r-- | skinlist.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/skinlist.lua b/skinlist.lua index da59a47..5b074fd 100644 --- a/skinlist.lua +++ b/skinlist.lua @@ -7,7 +7,7 @@ for _, fn in pairs(skins_dir_list) do nameparts = string.gsub(fn, "[.]", "_"):split("_") local id = nameparts[2] local name = "character_"..id - local skin_obj = skins.get(name) or skins.new(new) + local skin_obj = skins.get(name) or skins.new(name) if nameparts[3] == "preview" then skin_obj:set_preview(fn) else @@ -21,6 +21,7 @@ for _, fn in pairs(skins_dir_list) do skin_obj:set_meta("author", data[2]) skin_obj:set_meta("license", data[3]) end + table.insert(unsorted_skinslist, skin_obj) end end end |