diff options
author | Wuzzy <almikes@aol.com> | 2015-06-28 14:28:47 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2015-06-28 14:28:47 +0200 |
commit | 6a1c5d439af7d02865d52b732a57e88d6e0151a3 (patch) | |
tree | d42d3d3caf4a7bd70757feed8a32153379741956 | |
parent | b67ae1764fc95ffdebbcd248472778538736909e (diff) |
Fix exhaus bug
-rw-r--r-- | hunger.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -380,7 +380,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]) |