From 56e96b2593817eb77fcb51e4a81c80f4df6bb0c7 Mon Sep 17 00:00:00 2001 From: Tim <t4im@users.noreply.github.com> Date: Fri, 30 Jan 2015 05:16:41 +0100 Subject: [PATCH] add sawdust and tree/wood grindings with arcacia tree for dye and provide a better alternative rubbertree->latex path that yields the same as the tree tap, but requires more machine work --- technic/machines/register/cables.lua | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/technic/machines/register/cables.lua b/technic/machines/register/cables.lua index 9ec1cfa..7abdfcb 100644 --- a/technic/machines/register/cables.lua +++ b/technic/machines/register/cables.lua @@ -130,7 +130,11 @@ function technic.cables_should_connect(pos1, pos2, tier) local name = minetest.get_node(pos2).name - if technic.is_tier_cable(name, tier) then + if name == "technic:switching_station" then + return pos2.y == pos1.y + 1 and "machine" or false + elseif name == "technic:supply_converter" then + return math.abs(pos2.y - pos1.y) == 1 and "machine" or false + elseif technic.is_tier_cable(name, tier) then return "cable" elseif technic.machines[tier][name] then return "machine" -- Gitblit v1.8.0