summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-11 17:21:33 +0200
committerWuzzy <almikes@aol.com>2016-08-11 17:21:33 +0200
commit9a78ce745f0b819aa3bd201a022b3e6086e7627a (patch)
tree5900d8f7bdc6b0a83a3e7788551554703930ea53
parent5348d26a2e558bdfd3ec8901c5d4428a64b00c75 (diff)
Fix some Luacheck warnings
-rw-r--r--init.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 11afe78..a50013c 100644
--- a/init.lua
+++ b/init.lua
@@ -404,7 +404,6 @@ function hb.unhide_hudbar(player, identifier)
local name = player:get_player_name()
local hudtable = hb.get_hudtable(identifier)
if(hudtable.hudstate[name].hidden) then
- local name = player:get_player_name()
local value = hudtable.hudstate[name].value
local max = hudtable.hudstate[name].max
if hb.settings.bar_type == "progress_bar" then
@@ -510,7 +509,7 @@ minetest.register_globalstep(function(dtime)
if main_timer > hb.settings.tick then main_timer = 0 end
-- only proceed if damage is enabled
if minetest.setting_getbool("enable_damage") or hb.settings.forceload_default_hudbars then
- for playername, player in pairs(hb.players) do
+ for _, player in pairs(hb.players) do
-- update all hud elements
update_hud(player)
end