summaryrefslogtreecommitdiff
path: root/pipeworks
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-08-30 14:15:49 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-08-30 14:15:49 -0400
commit10466bea04f77261de0d9b77df4f7e4efbe88a19 (patch)
tree340f06ab1b7c47d156218e550ea5e9b25d36f945 /pipeworks
parent7a63e51fb5ac8c2db1bda58a2ba7e8532356fc8e (diff)
downloaddreambuilder_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')
-rw-r--r--pipeworks/autocrafter.lua9
-rw-r--r--pipeworks/filter-injector.lua3
-rw-r--r--pipeworks/sorting_tubes.lua25
-rw-r--r--pipeworks/trashcan.lua3
-rw-r--r--pipeworks/wielder.lua3
5 files changed, 36 insertions, 7 deletions
diff --git a/pipeworks/autocrafter.lua b/pipeworks/autocrafter.lua
index 648a610..faf5381 100644
--- a/pipeworks/autocrafter.lua
+++ b/pipeworks/autocrafter.lua
@@ -183,7 +183,14 @@ local function update_meta(meta, enabled)
default.gui_bg_img..
default.gui_slots..
default.get_hotbar_bg(0,7) ..
- "list[current_player;main;0,7;8,4;]")
+ "list[current_player;main;0,7;8,4;]" ..
+ "listring[current_player;main]"..
+ "listring[context;src]" ..
+ "listring[context;dst]" ..
+ "listring[current_player;main]"..
+ "listring[context;recipe]" ..
+ "listring[context;output]"
+ )
-- toggling the button doesn't quite call for running a recipe change check
-- so instead we run a minimal version for infotext setting only
diff --git a/pipeworks/filter-injector.lua b/pipeworks/filter-injector.lua
index 78e6f25..7fbabc2 100644
--- a/pipeworks/filter-injector.lua
+++ b/pipeworks/filter-injector.lua
@@ -45,7 +45,8 @@ local function set_filter_formspec(data, meta)
"Sequence slots Randomly",
"Sequence slots by Rotation"})..
exmatch_button..
- "list[current_player;main;0,4.5;8,4;]"
+ "list[current_player;main;0,4.5;8,4;]" ..
+ "listring[]"
end
meta:set_string("formspec", formspec)
end
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,
},
})
diff --git a/pipeworks/trashcan.lua b/pipeworks/trashcan.lua
index 87980ab..8db9edf 100644
--- a/pipeworks/trashcan.lua
+++ b/pipeworks/trashcan.lua
@@ -28,7 +28,8 @@ minetest.register_node("pipeworks:trashcan", {
default.gui_bg_img..
default.gui_slots..
default.get_hotbar_bg(0,3) ..
- "list[current_player;main;0,3;8,4;]")
+ "list[current_player;main;0,3;8,4;]" ..
+ "listring[]")
meta:set_string("infotext", "Trash Can")
meta:get_inventory():set_size("trash", 1)
end,
diff --git a/pipeworks/wielder.lua b/pipeworks/wielder.lua
index 3cb1649..4e2882b 100644
--- a/pipeworks/wielder.lua
+++ b/pipeworks/wielder.lua
@@ -14,7 +14,8 @@ local function set_wielder_formspec(data, meta)
"item_image[0,0;1,1;"..data.name_base.."_off]"..
"label[1,0;"..minetest.formspec_escape(data.description).."]"..
"list[current_name;"..minetest.formspec_escape(data.wield_inv_name)..";"..((8-data.wield_inv_width)*0.5)..",1;"..data.wield_inv_width..","..data.wield_inv_height..";]"..
- "list[current_player;main;0,"..(2+data.wield_inv_height)..";8,4;]")
+ "list[current_player;main;0,"..(2+data.wield_inv_height)..";8,4;]" ..
+ "listring[]")
meta:set_string("infotext", data.description)
end