Fix possible hunger crash

This commit is contained in:
Wuzzy 2020-09-10 20:25:13 +02:00
parent 05f70a9c43
commit 70666d0233

View File

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