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

View File

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