mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2025-06-30 07:20:33 +02:00
Fix bad initial breath value of 11
This commit is contained in:
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
|
||||
|
||||
|
Reference in New Issue
Block a user