summaryrefslogtreecommitdiff
path: root/pipeworks/lua_tube.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2018-02-13 14:05:34 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2018-02-13 14:05:34 -0500
commit335d9a3eddcb590c3ca5de9cba9b152e5e560af1 (patch)
tree1b95d73b945fbc9924438c28a35d7f1019fa255f /pipeworks/lua_tube.lua
parent1d0f113f4c5afcf8479973f2e01786fb9a1fbbb7 (diff)
downloaddreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.tar
dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.tar.gz
dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.tar.bz2
dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.tar.xz
dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.zip
removed boost_cart and carbone_mobs -- too many crashes
updated blox, homedecor, plantlifed, cottages, farming_redo, framedglass, gloopblocks, mesecons, moreblocks, moretrees, pipeworks, player_textures, replacer, signs_lib, stained_glass, technic, travelnet, unified_inventory, unifieddyes, and worldedit.
Diffstat (limited to 'pipeworks/lua_tube.lua')
-rw-r--r--pipeworks/lua_tube.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/pipeworks/lua_tube.lua b/pipeworks/lua_tube.lua
index 51665ae..8cc4468 100644
--- a/pipeworks/lua_tube.lua
+++ b/pipeworks/lua_tube.lua
@@ -731,8 +731,17 @@ for white = 0, 1 do
connect_sides = {front = 1, back = 1, left = 1, right = 1, top = 1, bottom = 1},
priority = 50,
can_go = function(pos, node, velocity, stack)
+ local src = {name = nil}
+ -- add color of the incoming tube explicitly; referring to rules, in case they change later
+ for color, rule in pairs(rules) do
+ if (-velocity.x == rule.x and -velocity.y == rule.y and -velocity.z == rule.z) then
+ src.name = rule.name
+ break
+ end
+ end
local succ, msg = run(pos, {
type = "item",
+ pin = src,
itemstring = stack:to_string(),
item = stack:to_table(),
velocity = velocity,