summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sorting_tubes.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/sorting_tubes.lua b/sorting_tubes.lua
index 6d432ae..efe4b4f 100644
--- a/sorting_tubes.lua
+++ b/sorting_tubes.lua
@@ -119,8 +119,13 @@ if pipeworks.enable_mese_tube then
if not pipeworks.may_configure(pos, player) then return 0 end
update_formspec(pos) -- For old tubes
local inv = minetest.get_meta(pos):get_inventory()
- inv:set_stack(from_list, from_index, ItemStack(""))
- return 0
+
+ if from_list:match("line%d") and to_list:match("line%d") then
+ return count
+ else
+ inv:set_stack(from_list, from_index, ItemStack(""))
+ return 0
+ end
end,
},
})