mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Builtin: Fix handle_node_drops crash with nil digger
This commit is contained in:
@@ -516,7 +516,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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user