Browse Source

revert texture name parsing change

master
Alexander Weber 2 weeks ago
parent
commit
55dc55f2dd
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      skinlist.lua

+ 1
- 5
skinlist.lua View File

@@ -2,11 +2,7 @@ local skins_dir_list = minetest.get_dir_list(skins.modpath.."/textures")

for _, fn in pairs(skins_dir_list) do
local name, sort_id, assignment, is_preview, playername
local nameparts = {
fn:match("^%w+"),
fn:gsub("^%w+_", ""):gsub("%.%w+$", ""),
fn:match("%w+$"),
}
local nameparts = string.gsub(fn, "[.]", "_"):split("_")

-- check allowed prefix and file extension
if (nameparts[1] == 'player' or nameparts[1] == 'character') and

Loading…
Cancel
Save