mirror of
https://repo.or.cz/minetest_orienteering.git
synced 2024-08-20 12:44:09 +02:00
Fix “noon” and “midnight” disappearing too fast
This commit is contained in:
parent
0fdecb5afe
commit
0252ceecc1
1
init.lua
1
init.lua
@ -311,6 +311,7 @@ function orienteering.update_hud_displays(player)
|
|||||||
local totalminutes = time * 1440
|
local totalminutes = time * 1440
|
||||||
local minutes = totalminutes % 60
|
local minutes = totalminutes % 60
|
||||||
local hours = math.floor((totalminutes - minutes) / 60)
|
local hours = math.floor((totalminutes - minutes) / 60)
|
||||||
|
minutes = math.floor(minutes)
|
||||||
local twelve = orienteering.playerhuds[name].twelve
|
local twelve = orienteering.playerhuds[name].twelve
|
||||||
if twelve then
|
if twelve then
|
||||||
if hours == 12 and minutes == 0 then
|
if hours == 12 and minutes == 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user