Skip to content
Permalink
Browse files

Builtin: Fix handle_node_drops crash with nil digger

  • Loading branch information...
SmallJoker committed Dec 12, 2017
1 parent 308bb69 commit b19241b9bc43e2d9721927ab32e5e56345721652
Showing with 2 additions and 1 deletion.
  1. +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

0 comments on commit b19241b

Please sign in to comment.
You can’t perform that action at this time.