diff options
author | bell07 <web.alexander@web.de> | 2018-05-10 15:14:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-10 15:14:51 +0200 |
commit | b12aefbe4fe768106ee1d1dfac8567dbbcd8c273 (patch) | |
tree | d5e63e14b9e2675129267ee69abc66c67cd8a13d /skinlist.lua | |
parent | 45edbf808ac0a74e4da6b468c2bf87b8b49e02a0 (diff) | |
parent | 2c20692f33cadc75edf279e2f0bed032d083b56d (diff) |
Merge pull request #11 from bell07/V_1_8_skins
Added support for 1.8er Skins
Ok, just merge it without review
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() |