Totems also reset breath

master
Wuzzy 2018-01-25 20:01:14 +01:00
parent ba47f3b67d
commit 3afa480995
1 changed files with 3 additions and 2 deletions

View File

@ -550,8 +550,9 @@ if c("totem") then
return hp_change
end
end
if minetest.get_modpath("mcl_hunger") then
mcl_hunger.set_hunger(player, 20, false)
-- Reset breath as well
if player:get_breath() < 11 then
player:set_breath(10)
end
if not minetest.settings:get_bool("creative_mode") then
wield:take_item()