diff options
author | SmallJoker <mk939@ymail.com> | 2017-12-12 19:19:04 +0100 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2017-12-12 19:19:04 +0100 |
commit | b19241b9bc43e2d9721927ab32e5e56345721652 (patch) | |
tree | 89cf89c8f2d7d7f24e701fd5650b51103769a3d4 | |
parent | 308bb69eefdfb2ff3b893c124ccf0321d99a1bfd (diff) | |
download | minetest-b19241b9bc43e2d9721927ab32e5e56345721652.tar.gz minetest-b19241b9bc43e2d9721927ab32e5e56345721652.tar.bz2 minetest-b19241b9bc43e2d9721927ab32e5e56345721652.zip |
Builtin: Fix handle_node_drops crash with nil digger
-rw-r--r-- | builtin/game/item.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |