fix luacheck

This commit is contained in:
Emojigit 2021-04-19 19:24:36 +08:00
parent a1bce09e42
commit eb7b70d190
1 changed files with 1 additions and 10 deletions

11
hud.lua
View File

@ -13,7 +13,7 @@ minetest.register_globalstep(function(dtime)
end
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:get_pos())
pos = vector.apply(pos, function(p)
return math.max(math.min(p, 2147483), -2147483)
@ -37,7 +37,6 @@ minetest.register_globalstep(function(dtime)
else
faction_info = table.concat(area.faction_open, ", ")
end
if changed then
areas:save()
end
@ -93,14 +92,6 @@ minetest.register_on_leaveplayer(function(player)
areas.hud[player:get_player_name()] = nil
end)
local function tablefind(tab,el)
for index, value in pairs(tab) do
if value == el then
return index
end
end
end
minetest.register_chatcommand("area_hud_hide", {
params = "",
description = S("Show or hide the area HUD element"),