Fix crash in awards after dig tree

This commit is contained in:
Wuzzy 2020-03-31 22:31:33 +02:00
parent 37de706e2c
commit f7047c2bde
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ awards.register_trigger("dig", {
key_is_item = true,
})
minetest.register_on_dignode(function(pos, node, player)
if not player or not pos or not node then
if not player or (not player:is_player()) or not pos or not node then
return
end