0.4.16+ tidy
This commit is contained in:
parent
a7ee92feff
commit
52db28ccdd
4
hud.lua
4
hud.lua
|
@ -6,6 +6,7 @@ local hud_timer = 0
|
||||||
|
|
||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
|
|
||||||
|
-- every 5 seconds
|
||||||
hud_timer = hud_timer + dtime
|
hud_timer = hud_timer + dtime
|
||||||
if hud_timer < 5 then
|
if hud_timer < 5 then
|
||||||
return
|
return
|
||||||
|
@ -15,7 +16,7 @@ minetest.register_globalstep(function(dtime)
|
||||||
for _, player in pairs(minetest.get_connected_players()) do
|
for _, player in pairs(minetest.get_connected_players()) do
|
||||||
|
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local pos = vector.round(player:getpos())
|
local pos = vector.round(player:get_pos())
|
||||||
local hud_text = ""
|
local hud_text = ""
|
||||||
|
|
||||||
local protectors = minetest.find_nodes_in_area(
|
local protectors = minetest.find_nodes_in_area(
|
||||||
|
@ -58,4 +59,3 @@ end)
|
||||||
minetest.register_on_leaveplayer(function(player)
|
minetest.register_on_leaveplayer(function(player)
|
||||||
hud[player:get_player_name()] = nil
|
hud[player:get_player_name()] = nil
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue