mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Builtin: Fix handle_node_drops crash with nil digger
This commit is contained in:
parent
f9738c1909
commit
8a849e893a
1 changed files with 2 additions and 1 deletions
|
@ -519,7 +519,8 @@ function core.handle_node_drops(pos, drops, digger)
|
|||
end
|
||||
else
|
||||
give_item = function(item)
|
||||
return item
|
||||
-- itemstring to ItemStack for left:is_empty()
|
||||
return ItemStack(item)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue