Fix undeclared global variable 'player' warning

This commit is contained in:
Jordan Irwin 2017-08-12 07:38:28 -07:00
parent fd5df30755
commit 92c22ef76d

View File

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