Fixed LightComponents staying active on broken items. Closes #759

This commit is contained in:
Joonas Rikkonen
2018-08-29 16:45:35 +03:00
parent 7eed555522
commit 105461beb3

View File

@@ -192,8 +192,13 @@ namespace Barotrauma.Items.Components
voltage = 0.0f;
}
#if CLIENT
public override void UpdateBroken(float deltaTime, Camera cam)
{
light.Color = Color.Transparent;
}
protected override void RemoveComponentSpecific()
{
base.RemoveComponentSpecific();