From b19241b9bc43e2d9721927ab32e5e56345721652 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Tue, 12 Dec 2017 19:19:04 +0100 Subject: Builtin: Fix handle_node_drops crash with nil digger --- builtin/game/item.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'builtin') diff --git a/builtin/game/item.lua b/builtin/game/item.lua index c7cbdd988..5e5696ff5 100644 --- a/builtin/game/item.lua +++ b/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 -- cgit v1.2.3