mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-11-27 17:43:44 +01:00
Fix bad initial breath value of 11
This commit is contained in:
parent
b0eabd3c7a
commit
65c8702e64
2
init.lua
2
init.lua
@ -270,7 +270,7 @@ end
|
||||
local function custom_hud(player)
|
||||
if minetest.setting_getbool("enable_damage") then
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user