projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
308bb69
)
Builtin: Fix handle_node_drops crash with nil digger
author
SmallJoker
<mk939@ymail.com>
Tue, 12 Dec 2017 18:19:04 +0000
(19:19 +0100)
committer
SmallJoker
<mk939@ymail.com>
Tue, 12 Dec 2017 18:19:04 +0000
(19:19 +0100)
builtin/game/item.lua
patch
|
blob
|
history
diff --git
a/builtin/game/item.lua
b/builtin/game/item.lua
index c7cbdd988c141bbf24274e7f017f9115bd082cd2..5e5696ff5fdb644865bde851afaaf63f6b59eeec 100644
(file)
--- 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