From df1c9d087492d1f518d721551e834fb43ede8aaf Mon Sep 17 00:00:00 2001 From: Novatux Date: Wed, 2 Jul 2014 12:42:33 +0200 Subject: [PATCH] Fix bug with multiple input inventories with the filters --- item_transport.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/item_transport.lua b/item_transport.lua index 558ea0d..3a4b563 100644 --- a/item_transport.lua +++ b/item_transport.lua @@ -148,8 +148,9 @@ minetest.register_node("pipeworks:filter", { 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 @@ -239,8 +240,9 @@ minetest.register_node("pipeworks:mese_filter", { 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 -- 2.30.2