mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-19 00:30:35 +01:00
f4ba3a2262
(Petit soucis sur le commit précédent car fait avec un nouvel outil que je ne maitrise pas encore… :p)
16 lines
451 B
Lua
Executable File
16 lines
451 B
Lua
Executable File
u_skins.meta = {}
|
|
for _, i in ipairs(u_skins.list) do
|
|
u_skins.meta[i] = {}
|
|
local f = io.open(u_skins.modpath.."/meta/"..i..".txt")
|
|
local data = nil
|
|
if f then
|
|
data = minetest.deserialize("return {"..f:read('*all').."}")
|
|
f:close()
|
|
end
|
|
data = data or {}
|
|
u_skins.meta[i].name = data.name or ""
|
|
u_skins.meta[i].author = data.author or ""
|
|
u_skins.meta[i].description = data.description or nil
|
|
u_skins.meta[i].comment = data.comment or nil
|
|
end
|