Skip to content

Commit b19241b

Browse files
committedDec 12, 2017
Builtin: Fix handle_node_drops crash with nil digger
1 parent 308bb69 commit b19241b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎builtin/game/item.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,8 @@ function core.handle_node_drops(pos, drops, digger)
516516
end
517517
else
518518
give_item = function(item)
519-
return item
519+
-- itemstring to ItemStack for left:is_empty()
520+
return ItemStack(item)
520521
end
521522
end
522523

0 commit comments

Comments
 (0)
Please sign in to comment.