Fix possible hunger crash
This commit is contained in:
parent
05f70a9c43
commit
70666d0233
@ -121,7 +121,9 @@ local function on_dignode(pos, oldnode, player)
|
||||
end
|
||||
|
||||
local name = player:get_player_name()
|
||||
|
||||
if not hunger.userdata[name] then
|
||||
return
|
||||
end
|
||||
hunger.userdata[name].active = hunger.userdata[name].active + 2
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user