Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Builtin: Fix handle_node_drops crash with nil digger
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+2
−1
builtin/game/item.lua
|
@@ -516,7 +516,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 |
|
|
|
|
|