mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-25 10:20:24 +01:00
Fix bug with multiple input inventories with the filters
This commit is contained in:
parent
99a902a8b8
commit
df1c9d0874
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user