allow reordering of itemstacks in sorting tube

This commit is contained in:
Tim 2016-08-29 18:28:24 +02:00
parent a65eaa7cf2
commit aba1ce5b36

View File

@ -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,
},
})