From 8d1db582ad725577533f7a53c6ec6d98b7c26311 Mon Sep 17 00:00:00 2001 From: Regalis Date: Thu, 10 Nov 2016 17:46:46 +0200 Subject: [PATCH] Fixed flickering lights --- Subsurface/Source/Items/Components/Power/PowerTransfer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Subsurface/Source/Items/Components/Power/PowerTransfer.cs b/Subsurface/Source/Items/Components/Power/PowerTransfer.cs index d7257c601..dbdc7e932 100644 --- a/Subsurface/Source/Items/Components/Power/PowerTransfer.cs +++ b/Subsurface/Source/Items/Components/Power/PowerTransfer.cs @@ -54,10 +54,11 @@ namespace Barotrauma.Items.Components //by the constructions connected to the grid fullPower = 0.0f; fullLoad = 0.0f; - updateTimer = 0; + connectedList.Clear(); CheckJunctions(deltaTime); + updateTimer = 0; foreach (Powered p in connectedList) {