1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-30 00:10:33 +02:00

Fix exhaus variable

This commit is contained in:
LeMagnesium 2015-06-25 21:59:28 +02:00
parent 8372822cf4
commit 5be9ef91bf

View File

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