Round seconds and fix minor error in mcl_time

This commit is contained in:
kay27 2022-02-20 03:36:53 +04:00
parent 917f04e1f7
commit a634137436
2 changed files with 3 additions and 3 deletions

View File

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

View File

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