From 8d991881aad4bc1ce02903c02297fadb45c8e915 Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Fri, 16 Jun 2017 23:16:22 +0200 Subject: get the new api working with sfinv and 3d_armor --- skinlist.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'skinlist.lua') 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 -- cgit v1.2.3