From 465b848cb450fb22a4b9af16fb64eb2662be267a Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Fri, 6 Apr 2018 19:51:16 +0300 Subject: [PATCH] Fixed relay components ignoring signals to the toggle and set_state connections if the signal has been passed through other PowerTransfer components. Closes #355 --- .../Source/Items/Components/Power/PowerTransfer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Power/PowerTransfer.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Power/PowerTransfer.cs index b8e4b49eb..415a15ab7 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Power/PowerTransfer.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Power/PowerTransfer.cs @@ -383,9 +383,9 @@ namespace Barotrauma.Items.Components foreach (ItemComponent ic in recipient.Item.components) { - //powertransfer components don't need to receive the signal because we relay it straight - //to the connected items without going through the whole chain of junction boxes - if (ic is PowerTransfer) continue; + //powertransfer components don't need to receive the signal in the pass-through signal connections + //because we relay it straight to the connected items without going through the whole chain of junction boxes + if (ic is PowerTransfer && connection.Name.Contains("signal")) continue; ic.ReceiveSignal(stepsTaken, signal, recipient, source, sender, 0.0f); }