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:
committed by
Vanessa Ezekowitz
parent
3eb9d192d0
commit
add43c9529
@ -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
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user