mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-18 00:08:25 +01:00
Fix exhaus variable
This commit is contained in:
parent
8372822cf4
commit
5be9ef91bf
@ -401,7 +401,7 @@ function hbhunger.handle_node_actions(pos, oldnode, player, ext)
|
|||||||
if not pos and not oldnode then
|
if not pos and not oldnode then
|
||||||
new = HUNGER_EXHAUST_MOVE
|
new = HUNGER_EXHAUST_MOVE
|
||||||
end
|
end
|
||||||
exhaus = exhaus + new
|
exhaus = (exhaus or 0) + new
|
||||||
if exhaus > HUNGER_EXHAUST_LVL then
|
if exhaus > HUNGER_EXHAUST_LVL then
|
||||||
exhaus = 0
|
exhaus = 0
|
||||||
local h = tonumber(hbhunger.hunger[name])
|
local h = tonumber(hbhunger.hunger[name])
|
||||||
|
Loading…
Reference in New Issue
Block a user