From 335d9a3eddcb590c3ca5de9cba9b152e5e560af1 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Tue, 13 Feb 2018 14:05:34 -0500 Subject: 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. --- pipeworks/lua_tube.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pipeworks/lua_tube.lua') 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, -- cgit v1.2.3