diff --git a/mods/hbhunger/hunger.lua b/mods/hbhunger/hunger.lua index 42b48bd7..cca261c7 100755 --- a/mods/hbhunger/hunger.lua +++ b/mods/hbhunger/hunger.lua @@ -401,7 +401,7 @@ function hbhunger.handle_node_actions(pos, oldnode, player, ext) if not pos and not oldnode then new = HUNGER_EXHAUST_MOVE end - exhaus = exhaus + new + exhaus = (exhaus or 0) + new if exhaus > HUNGER_EXHAUST_LVL then exhaus = 0 local h = tonumber(hbhunger.hunger[name])