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

View File

@ -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