forked from MineClone5/MineClone5
Round seconds and fix minor error in mcl_time
This commit is contained in:
parent
917f04e1f7
commit
a634137436
|
@ -1,4 +1,4 @@
|
||||||
# mcl_time v2.0
|
# mcl_time v2.1
|
||||||
## by kay27 for MineClone 5
|
## by kay27 for MineClone 5
|
||||||
---------------------------
|
---------------------------
|
||||||
This mod counts time when all players sleep or some area is inactive.
|
This mod counts time when all players sleep or some area is inactive.
|
||||||
|
|
|
@ -61,10 +61,10 @@ local function get_seconds_irl()
|
||||||
next_save_seconds_irl = seconds_irl + save_to_storage_interval
|
next_save_seconds_irl = seconds_irl + save_to_storage_interval
|
||||||
end
|
end
|
||||||
|
|
||||||
return seconds_irl
|
return math.floor(seconds_irl)
|
||||||
end
|
end
|
||||||
|
|
||||||
local seconds_irl_public = get_seconds_irl()
|
seconds_irl_public = get_seconds_irl()
|
||||||
|
|
||||||
function mcl_time.get_seconds_irl()
|
function mcl_time.get_seconds_irl()
|
||||||
return seconds_irl_public
|
return seconds_irl_public
|
||||||
|
|
Loading…
Reference in New Issue