Fixed minimap not powering up

This commit is contained in:
Joonas Rikkonen
2018-02-13 12:29:57 +02:00
parent ff7f43ca83
commit 055bf13f59
@@ -59,8 +59,9 @@ namespace Barotrauma.Items.Components
} }
currPowerConsumption = powerConsumption; currPowerConsumption = powerConsumption;
if (voltage > minVoltage) hasPower = voltage > minVoltage;
if (hasPower)
{ {
ApplyStatusEffects(ActionType.OnActive, deltaTime, null); ApplyStatusEffects(ActionType.OnActive, deltaTime, null);
} }