From 2d2a441e33f0d87b429c806a23a542be684a806d Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Tue, 13 Jan 2015 20:40:29 +0100 Subject: [PATCH] Fixed exhaus and added debug line --- mods/hud/hunger.lua | 2 ++ 1 file changed, 2 insertions(+) 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