projects
/
zefram
/
minetest
/
pipeworks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28328d9
)
Check for on_metadata_inventory_take
author
Cy
<whatever>
Tue, 15 Oct 2013 22:29:55 +0000
(15:29 -0700)
committer
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Tue, 15 Oct 2013 22:37:45 +0000
(18:37 -0400)
item_transport.lua
patch
|
blob
|
history
diff --git
a/item_transport.lua
b/item_transport.lua
index ff2d86537b3f7c3dc4793a053948d0d44dc153a9..721aa198fb20be14db28996b6dd58089ecbeb282 100644
(file)
--- a/
item_transport.lua
+++ b/
item_transport.lua
@@
-138,7
+138,9
@@
function grabAndFire(frominv,frominvname,frompos,fromnode,sname,tube,idef,dir,al
else
item=stack:take_item(count)
frominv:set_stack(frominvname,spos,stack)
- idef.on_metadata_inventory_take(frompos, "main", spos, item, fakePlayer)
+ if idef.on_metadata_inventory_take then
+ idef.on_metadata_inventory_take(frompos, "main", spos, item, fakePlayer)
+ end
end
item1=tube_item(frompos,item)
item1:get_luaentity().start_pos = frompos