From 8a849e893a4eedb2dd9db8e26f2dab23ac4f3c55 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(-) diff --git a/builtin/game/item.lua b/builtin/game/item.lua index 09e3ea999..d4ce6002f 100644 --- a/builtin/game/item.lua +++ b/builtin/game/item.lua @@ -519,7 +519,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