0.4.16+ tidy

This commit is contained in:
TenPlus1 2018-09-27 12:56:04 +01:00
parent a7ee92feff
commit 52db28ccdd
1 changed files with 4 additions and 4 deletions

View File

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