forked from Wuzzy/realtest_mt5
Fix crash in awards after dig tree
This commit is contained in:
parent
37de706e2c
commit
f7047c2bde
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue