Fix bad initial breath value of 11

This commit is contained in:
Wuzzy 2015-02-12 05:07:00 +01:00
parent b0eabd3c7a
commit 65c8702e64

@ -270,7 +270,7 @@ end
local function custom_hud(player) local function custom_hud(player)
if minetest.setting_getbool("enable_damage") then if minetest.setting_getbool("enable_damage") then
hb.init_hudbar(player, "health", player:get_hp()) hb.init_hudbar(player, "health", player:get_hp())
hb.init_hudbar(player, "breath", player:get_breath()) hb.init_hudbar(player, "breath", math.min(player:get_breath(), 10))
end end
end end