From 54da9f6f2b362332c3e3d1e032dcbf6ea0eadf50 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 19 Feb 2017 21:11:49 +0100 Subject: [PATCH] Fix clock turning into unknown item near midnight --- mods/ITEMS/mcl_clock/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_clock/init.lua b/mods/ITEMS/mcl_clock/init.lua index 0863ed5ecc..7c1acf2a14 100644 --- a/mods/ITEMS/mcl_clock/init.lua +++ b/mods/ITEMS/mcl_clock/init.lua @@ -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