Release v0.15.12.0
This commit is contained in:
@@ -159,7 +159,10 @@ namespace Barotrauma.Items.Components
|
||||
{
|
||||
lightColor = value;
|
||||
#if CLIENT
|
||||
if (Light != null) Light.Color = IsActive ? lightColor : Color.Transparent;
|
||||
if (Light != null)
|
||||
{
|
||||
Light.Color = IsActive ? lightColor : Color.Transparent;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -233,6 +236,8 @@ namespace Barotrauma.Items.Components
|
||||
}
|
||||
UpdateOnActiveEffects(deltaTime);
|
||||
|
||||
if (powerIn == null && powerConsumption > 0.0f) { Voltage -= deltaTime; }
|
||||
|
||||
#if CLIENT
|
||||
Light.ParentSub = item.Submarine;
|
||||
#endif
|
||||
@@ -293,8 +298,6 @@ namespace Barotrauma.Items.Components
|
||||
}
|
||||
|
||||
SetLightSourceState(true, lightBrightness);
|
||||
|
||||
if (powerIn == null && powerConsumption > 0.0f) { Voltage -= deltaTime; }
|
||||
}
|
||||
|
||||
public override void UpdateBroken(float deltaTime, Camera cam)
|
||||
|
||||
Reference in New Issue
Block a user