diff options
author | Ilya Zhuravlev <zhuravlevilya@ya.ru> | 2012-12-02 20:19:06 +0400 |
---|---|---|
committer | Ilya Zhuravlev <zhuravlevilya@ya.ru> | 2012-12-02 21:09:30 +0400 |
commit | eeb0900291583c6d81656fbbd977fa74b1a733b6 (patch) | |
tree | 2630091f44a9a6aa66d89917766d998aad9465e8 /builtin | |
parent | 804a7875a2018f3d8cb3fbe917c11ecc1666d25a (diff) | |
download | minetest-eeb0900291583c6d81656fbbd977fa74b1a733b6.tar.gz minetest-eeb0900291583c6d81656fbbd977fa74b1a733b6.tar.bz2 minetest-eeb0900291583c6d81656fbbd977fa74b1a733b6.zip |
Fix minetest.get_node_drops(). It should always return list of item names, not ItemStack(s).
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/item.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/item.lua b/builtin/item.lua index 4be77e1d7..80c665c99 100644 --- a/builtin/item.lua +++ b/builtin/item.lua @@ -76,10 +76,10 @@ function minetest.get_node_drops(nodename, toolname) local drop = ItemStack({name=nodename}):get_definition().drop if drop == nil then -- default drop - return {ItemStack({name=nodename})} + return {nodename} elseif type(drop) == "string" then -- itemstring drop - return {ItemStack(drop)} + return {drop} elseif drop.items == nil then -- drop = {} to disable default drop return {} |