diff options
author | Alexander Weber <web.alexander@web.de> | 2018-04-15 01:09:38 +0200 |
---|---|---|
committer | Alexander Weber <web.alexander@web.de> | 2018-04-16 16:17:42 +0200 |
commit | 2c20692f33cadc75edf279e2f0bed032d083b56d (patch) | |
tree | d5e63e14b9e2675129267ee69abc66c67cd8a13d /skinlist.lua | |
parent | 45edbf808ac0a74e4da6b468c2bf87b8b49e02a0 (diff) |
Added support for 1.8er Skins
Diffstat (limited to 'skinlist.lua')
-rw-r--r-- | skinlist.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/skinlist.lua b/skinlist.lua index 5ed5e12..ff7d8d4 100644 --- a/skinlist.lua +++ b/skinlist.lua @@ -42,7 +42,10 @@ for _, fn in pairs(skins_dir_list) do if playername then skin_obj:set_meta("playername", playername) end - local file = io.open(skins.modpath.."/meta/"..name..".txt", "r") + local file = io.open(skins.modpath.."/textures/"..fn, "r") + skin_obj:set_meta("format", skins.get_skin_format(file)) + file:close() + file = io.open(skins.modpath.."/meta/"..name..".txt", "r") if file then local data = string.split(file:read("*all"), "\n", 3) file:close() |