blob: 59475319b99dfce6de7e1b561eb133f5052faf70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
u_skins.list = {}
u_skins.add = function(skin)
table.insert(u_skins.list,skin)
end
local id
id = 1
while true do
local f = io.open(minetest.get_modpath("u_skins").."/textures/player_"..id..".png")
if (not f) then break end
f:close()
u_skins.add("player_"..id)
id = id +1
end
id = 1
while true do
local f = io.open(minetest.get_modpath("u_skins").."/textures/character_"..id..".png")
if (not f) then break end
f:close()
u_skins.add("character_"..id)
id = id +1
end
|