mirror of
https://github.com/minetest/minetest.git
synced 2024-09-27 06:50:29 +02:00
Builtin: Fix handle_node_drops crash with nil digger
This commit is contained in:
parent
f9738c1909
commit
8a849e893a
|
@ -519,7 +519,8 @@ function core.handle_node_drops(pos, drops, digger)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
give_item = function(item)
|
give_item = function(item)
|
||||||
return item
|
-- itemstring to ItemStack for left:is_empty()
|
||||||
|
return ItemStack(item)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user