Fix exhaus bug

This commit is contained in:
Wuzzy 2015-06-28 14:28:47 +02:00
parent b67ae1764f
commit 6a1c5d439a
1 changed files with 1 additions and 1 deletions

View File

@ -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])