mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-14 07:01:06 +01:00
Fix clock turning into unknown item near midnight
This commit is contained in:
parent
7cec4c5b7a
commit
54da9f6f2b
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ end
|
|||
|
||||
function watch.get_clock_frame()
|
||||
local t = 64 * minetest.get_timeofday()
|
||||
return tostring(round(t))
|
||||
t = round(t)
|
||||
if t == 64 then t = 0 end
|
||||
return tostring(t)
|
||||
end
|
||||
|
||||
-- Register items
|
||||
|
|
Loading…
Reference in a new issue