1
0
Fork 0

Fix clock turning into unknown item near midnight

This commit is contained in:
Wuzzy 2017-02-19 21:11:49 +01:00
parent 7cec4c5b7a
commit 54da9f6f2b
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ end
function watch.get_clock_frame() function watch.get_clock_frame()
local t = 64 * minetest.get_timeofday() local t = 64 * minetest.get_timeofday()
return tostring(round(t)) t = round(t)
if t == 64 then t = 0 end
return tostring(t)
end end
-- Register items -- Register items