From: SmallJoker Date: Tue, 12 Dec 2017 18:19:04 +0000 (+0100) Subject: Builtin: Fix handle_node_drops crash with nil digger X-Git-Tag: 5.0.0~686 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b19241b9bc43e2d9721927ab32e5e56345721652;p=oweals%2Fminetest.git Builtin: Fix handle_node_drops crash with nil digger --- 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