mirror of
https://gitlab.com/4w/mtimer.git
synced 2024-11-28 10:13:50 +01:00
10 lines
270 B
Lua
10 lines
270 B
Lua
local m = mtimer
|
|
|
|
minetest.register_on_joinplayer(function(player)
|
|
local meta = player:get_meta()
|
|
for _,def in pairs(m.meta) do
|
|
local current = meta:get_string(def.key)
|
|
if current == '' then meta:set_string(def.key, def.default) end
|
|
end
|
|
end)
|