Skip to content

Commit

Permalink
Builtin: Fix handle_node_drops crash with nil digger
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Dec 12, 2017
1 parent 308bb69 commit b19241b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builtin/game/item.lua
Expand Up @@ -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

Expand Down

0 comments on commit b19241b

Please sign in to comment.