summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2015-02-12 05:07:00 +0100
committerWuzzy <almikes@aol.com>2015-02-12 05:07:00 +0100
commit65c8702e6466c70677ad3f5bd9be1858441fec30 (patch)
treeabbb2e363f24b5945cae027ecb8d4d9ace57c8c8
parentb0eabd3c7a1cb49d7393e60d91c9e9e61602f636 (diff)
Fix bad initial breath value of 11
-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