From d6b0deb989e649e2800932d4a587c3ba9e3e24c7 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz <vanessaezekowitz@gmail.com> Date: Sat, 17 Jan 2015 01:16:39 +0100 Subject: [PATCH] fix cnc stick formspec img (missed the border) --- 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