From a6341374362d5f53b368d74eb426e215343c3ddd Mon Sep 17 00:00:00 2001 From: kay27 Date: Sun, 20 Feb 2022 03:36:53 +0400 Subject: [PATCH] Round seconds and fix minor error in mcl_time --- mods/CORE/mcl_time/README.md | 2 +- mods/CORE/mcl_time/init.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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