Fix bug with multiple input inventories with the filters

This commit is contained in:
Novatux 2014-07-02 12:42:33 +02:00
parent 99a902a8b8
commit df1c9d0874

View File

@ -148,8 +148,9 @@ minetest.register_node("pipeworks:filter", {
end end
end end
if inv:is_empty("main") then if inv:is_empty("main") then
grabAndFire(frominv, frominvname, frompos, fromnode, nil, tube, idef, dir) if grabAndFire(frominv, frominvname, frompos, fromnode, nil, tube, idef, dir) then
return true return true
end
end end
return false return false
end end
@ -239,8 +240,9 @@ minetest.register_node("pipeworks:mese_filter", {
end end
end end
if inv:is_empty("main") then if inv:is_empty("main") then
grabAndFire(frominv, frominvname, frompos, fromnode, nil, tube, idef, dir, true) if grabAndFire(frominv, frominvname, frompos, fromnode, nil, tube, idef, dir, true) then
return true return true
end
end end
return false return false
end end