aftermath/mods/skins/meta.lua
maikerumine 6e3c545c08 A new post apocalyptic survival game, inspired by Blockmen's Wastland game
A new post apocalyptic survival game, inspired by Blockmen's Wastland
game
2015-12-05 14:07:07 -05:00

16 lines
435 B
Lua

skins.meta = {}
for _, i in ipairs(skins.list) do
skins.meta[i] = {}
local f = io.open(skins.modpath.."/meta/"..i..".txt")
local data = nil
if f then
data = minetest.deserialize("return {"..f:read('*all').."}")
f:close()
end
data = data or {}
skins.meta[i].name = data.name or ""
skins.meta[i].author = data.author or ""
skins.meta[i].description = data.description or nil
skins.meta[i].comment = data.comment or nil
end