From 5be9ef91bfeb38f4a6a07d49c2d4cd5918da9aa3 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Thu, 25 Jun 2015 21:59:28 +0200 Subject: [PATCH] Fix exhaus variable --- mods/hbhunger/hunger.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])