diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-08-30 14:15:49 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-08-30 14:15:49 -0400 |
commit | 10466bea04f77261de0d9b77df4f7e4efbe88a19 (patch) | |
tree | 340f06ab1b7c47d156218e550ea5e9b25d36f945 /pipeworks/sorting_tubes.lua | |
parent | 7a63e51fb5ac8c2db1bda58a2ba7e8532356fc8e (diff) | |
download | dreambuilder_modpack-10466bea04f77261de0d9b77df4f7e4efbe88a19.tar dreambuilder_modpack-10466bea04f77261de0d9b77df4f7e4efbe88a19.tar.gz dreambuilder_modpack-10466bea04f77261de0d9b77df4f7e4efbe88a19.tar.bz2 dreambuilder_modpack-10466bea04f77261de0d9b77df4f7e4efbe88a19.tar.xz dreambuilder_modpack-10466bea04f77261de0d9b77df4f7e4efbe88a19.zip |
updated homedecor, moreblocks, pipeworks, and travelnet
Diffstat (limited to 'pipeworks/sorting_tubes.lua')
-rw-r--r-- | pipeworks/sorting_tubes.lua | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/pipeworks/sorting_tubes.lua b/pipeworks/sorting_tubes.lua index 6d432ae..edaa24a 100644 --- a/pipeworks/sorting_tubes.lua +++ b/pipeworks/sorting_tubes.lua @@ -31,7 +31,21 @@ if pipeworks.enable_mese_tube then "image[0,4;1,1;pipeworks_blue.png]".. "image[0,5;1,1;pipeworks_red.png]".. buttons_formspec.. - "list[current_player;main;0,7;8,4;]") + "list[current_player;main;0,7;8,4;]" .. + "listring[current_player;main]" .. + "listring[current_player;main]" .. + "listring[context;line1]" .. + "listring[current_player;main]" .. + "listring[context;line2]" .. + "listring[current_player;main]" .. + "listring[context;line3]" .. + "listring[current_player;main]" .. + "listring[context;line4]" .. + "listring[current_player;main]" .. + "listring[context;line5]" .. + "listring[current_player;main]" .. + "listring[context;line6]" + ) end pipeworks.register_tube("pipeworks:mese_tube", { @@ -119,8 +133,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, }, }) |