1
0
mirror of https://github.com/SmallJoker/minetest-u_skinsdb.git synced 2025-07-03 00:20:40 +02:00

Version MFF.

This commit is contained in:
sys4-fr
2018-09-08 23:10:14 +02:00
parent 71bebbeb09
commit f0d5f20a3a
166 changed files with 290 additions and 162 deletions

15
u_skins/meta.lua Executable file
View File

@ -0,0 +1,15 @@
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