diff --git a/mods/CORE/mcl_time/README.md b/mods/CORE/mcl_time/README.md index 24a4cd1cd..0fda96ad3 100644 --- a/mods/CORE/mcl_time/README.md +++ b/mods/CORE/mcl_time/README.md @@ -1,4 +1,4 @@ -# mcl_time v2.0 +# mcl_time v2.1 ## by kay27 for MineClone 5 --------------------------- This mod counts time when all players sleep or some area is inactive. diff --git a/mods/CORE/mcl_time/init.lua b/mods/CORE/mcl_time/init.lua index 2d7e93f9e..c4077b1fc 100644 --- a/mods/CORE/mcl_time/init.lua +++ b/mods/CORE/mcl_time/init.lua @@ -61,10 +61,10 @@ local function get_seconds_irl() next_save_seconds_irl = seconds_irl + save_to_storage_interval end - return seconds_irl + return math.floor(seconds_irl) end -local seconds_irl_public = get_seconds_irl() +seconds_irl_public = get_seconds_irl() function mcl_time.get_seconds_irl() return seconds_irl_public