mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +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
|
||||
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])
|
||||
|
Loading…
Reference in New Issue
Block a user