From 00f61dfb81100094b64de06ca4e1ef73ef8bcd47 Mon Sep 17 00:00:00 2001
From: Tim <t4im@users.noreply.github.com>
Date: Fri, 30 Jan 2015 05:09:20 +0100
Subject: [PATCH] rewrite extractor dye recipes, adding a few dyes and making it work better with the dye mod also preventing any issues if it is being run in a game without it

---
 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