forked from mtcontrib/pipeworks
Check for on_metadata_inventory_take
This commit is contained in:
parent
28328d975c
commit
ce1acebf6d
@ -138,8 +138,10 @@ function grabAndFire(frominv,frominvname,frompos,fromnode,sname,tube,idef,dir,al
|
||||
else
|
||||
item=stack:take_item(count)
|
||||
frominv:set_stack(frominvname,spos,stack)
|
||||
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
|
||||
item1:setvelocity(dir)
|
||||
|
Loading…
Reference in New Issue
Block a user