Update HUD Bars mod to version 1.7.1
This commit is contained in:
parent
9ec16db5c2
commit
d3b3c596bd
3 changed files with 8 additions and 4 deletions
|
@ -523,7 +523,11 @@ local function update_hud(player)
|
|||
end
|
||||
end
|
||||
|
||||
minetest.register_on_player_hpchange(update_health)
|
||||
minetest.register_on_player_hpchange(function(player)
|
||||
if hb.players[player:get_player_name()] ~= nil then
|
||||
update_health(player)
|
||||
end
|
||||
end)
|
||||
|
||||
minetest.register_on_respawnplayer(function(player)
|
||||
update_health(player)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue