Fix clock turning into unknown item near midnight
This commit is contained in:
parent
7cec4c5b7a
commit
54da9f6f2b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue