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)
|
||||
|
||||
-- every 5 seconds
|
||||
hud_timer = hud_timer + dtime
|
||||
if hud_timer < 5 then
|
||||
return
|
||||
|
@ -15,7 +16,7 @@ minetest.register_globalstep(function(dtime)
|
|||
for _, player in pairs(minetest.get_connected_players()) do
|
||||
|
||||
local name = player:get_player_name()
|
||||
local pos = vector.round(player:getpos())
|
||||
local pos = vector.round(player:get_pos())
|
||||
local hud_text = ""
|
||||
|
||||
local protectors = minetest.find_nodes_in_area(
|
||||
|
@ -58,4 +59,3 @@ end)
|
|||
minetest.register_on_leaveplayer(function(player)
|
||||
hud[player:get_player_name()] = nil
|
||||
end)
|
||||
|
||||
|
|
Loading…
Reference in New Issue