end
end
if inv:is_empty("main") then
- grabAndFire(frominv, frominvname, frompos, fromnode, nil, tube, idef, dir)
- return true
+ if grabAndFire(frominv, frominvname, frompos, fromnode, nil, tube, idef, dir) then
+ return true
+ end
end
return false
end
end
end
if inv:is_empty("main") then
- grabAndFire(frominv, frominvname, frompos, fromnode, nil, tube, idef, dir, true)
- return true
+ if grabAndFire(frominv, frominvname, frompos, fromnode, nil, tube, idef, dir, true) then
+ return true
+ end
end
return false
end