1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-15 04:10:18 +02:00

More cleanup/tweaking

This commit is contained in:
kilbith
2015-04-30 11:48:15 +02:00
committed by Vanessa Ezekowitz
parent 3eb9d192d0
commit add43c9529
4 changed files with 49 additions and 44 deletions

View File

@ -607,7 +607,12 @@ homedecor.register("calendar", {
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local date = os.date("%Y-%m-%d") -- ISO 8601 format
meta:set_string("infotext", "Date: "..date)
meta:set_string("infotext", "Date (right-click to update):\n"..date)
end,
on_rightclick = function(pos, node, clicker)
local meta = minetest.get_meta(pos)
local date = os.date("%Y-%m-%d")
meta:set_string("infotext", "Date (right-click to update):\n"..date)
end
})