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: 0.4.17~44 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8a849e893a4eedb2dd9db8e26f2dab23ac4f3c55;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 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