Merge pull request #2 from AntumMT/fixes

Fix undeclared global variable 'player' warning
This commit is contained in:
texmex 2017-08-24 08:16:01 +02:00 committed by GitHub
commit 34b9470ea1

@ -122,7 +122,7 @@ if minetest.get_modpath("hudbars") ~= nil and stamina then
20, 20,
false, "%s: %.1f/%.1f")
hudbars = true
hb.hide_hudbar(player, "stamina")
hb.hide_hudbar(nil, "stamina")
end
minetest.register_on_joinplayer(function(player)