aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2017-12-12 19:19:04 +0100
committerSmallJoker <mk939@ymail.com>2018-06-03 17:32:00 +0200
commit8a849e893a4eedb2dd9db8e26f2dab23ac4f3c55 (patch)
treea2256c142f900250e8250878e4d347a365bc6cee /builtin
parentf9738c1909309ff311f604371d7d73abde753e1d (diff)
downloadminetest-8a849e893a4eedb2dd9db8e26f2dab23ac4f3c55.tar.gz
minetest-8a849e893a4eedb2dd9db8e26f2dab23ac4f3c55.tar.bz2
minetest-8a849e893a4eedb2dd9db8e26f2dab23ac4f3c55.zip
Builtin: Fix handle_node_drops crash with nil digger
Diffstat (limited to 'builtin')
-rw-r--r--builtin/game/item.lua3
1 files changed, 2 insertions, 1 deletions
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