From c6380c3774c180fdb9e71501aedec1e09a3b017c Mon Sep 17 00:00:00 2001 From: Regalis Date: Thu, 1 Dec 2016 17:34:02 +0200 Subject: [PATCH] Broken junction boxes can't pass power from a box to another (wtf how have I not noticed this) --- Subsurface/Source/Items/Components/Power/PowerTransfer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Subsurface/Source/Items/Components/Power/PowerTransfer.cs b/Subsurface/Source/Items/Components/Power/PowerTransfer.cs index e8bae85b8..9fa4d9b2c 100644 --- a/Subsurface/Source/Items/Components/Power/PowerTransfer.cs +++ b/Subsurface/Source/Items/Components/Power/PowerTransfer.cs @@ -125,6 +125,8 @@ namespace Barotrauma.Items.Components Item it = recipient.Item; if (it == null) continue; + if (it.Condition <= 0.0f) continue; + Powered powered = it.GetComponent(); if (powered == null || !powered.IsActive) continue;