summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 51e1901..acb07bd 100644
--- a/init.lua
+++ b/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