forked from minetest-mods/hbsprint
Fix undeclared global variable 'player' warning
This commit is contained in:
parent
fd5df30755
commit
92c22ef76d
2
init.lua
2
init.lua
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user