1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-12-24 18:00:22 +01:00

Check for on_metadata_inventory_take

This commit is contained in:
Cy 2013-10-15 15:29:55 -07:00 committed by Vanessa Ezekowitz
parent 28328d975c
commit ce1acebf6d

View File

@ -138,7 +138,9 @@ function grabAndFire(frominv,frominvname,frompos,fromnode,sname,tube,idef,dir,al
else else
item=stack:take_item(count) item=stack:take_item(count)
frominv:set_stack(frominvname,spos,stack) 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 end
item1=tube_item(frompos,item) item1=tube_item(frompos,item)
item1:get_luaentity().start_pos = frompos item1:get_luaentity().start_pos = frompos