diff options
author | Wuzzy <almikes@aol.com> | 2016-08-11 17:21:33 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-11 17:21:33 +0200 |
commit | 9a78ce745f0b819aa3bd201a022b3e6086e7627a (patch) | |
tree | 5900d8f7bdc6b0a83a3e7788551554703930ea53 /init.lua | |
parent | 5348d26a2e558bdfd3ec8901c5d4428a64b00c75 (diff) |
Fix some Luacheck warnings
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |