diff --git a/mods/hud/hunger.lua b/mods/hud/hunger.lua index 0d2ab96f..236af426 100755 --- a/mods/hud/hunger.lua +++ b/mods/hud/hunger.lua @@ -367,6 +367,8 @@ function hud.handle_node_actions(pos, oldnode, player, ext) if not pos and not oldnode then new = HUD_HUNGER_EXHAUST_MOVE end + if exhaus == nil then return end + print(exhaus) -- If exhaus goes through the condition exhaus = exhaus + new if exhaus > HUD_HUNGER_EXHAUST_LVL then exhaus = 0