From 055bf13f5909a43ab7fabf11db734581eb592d8c Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Tue, 13 Feb 2018 12:29:57 +0200 Subject: [PATCH] Fixed minimap not powering up --- .../Source/Items/Components/Machines/MiniMap.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Machines/MiniMap.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Machines/MiniMap.cs index 1e3c7b787..480bb2bab 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Machines/MiniMap.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Machines/MiniMap.cs @@ -59,8 +59,9 @@ namespace Barotrauma.Items.Components } currPowerConsumption = powerConsumption; - - if (voltage > minVoltage) + + hasPower = voltage > minVoltage; + if (hasPower) { ApplyStatusEffects(ActionType.OnActive, deltaTime, null); }