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
@@ -194,6 +194,11 @@ namespace Barotrauma.Items.Components
} }
#if CLIENT #if CLIENT
public override void UpdateBroken(float deltaTime, Camera cam)
{
light.Color = Color.Transparent;
}
protected override void RemoveComponentSpecific() protected override void RemoveComponentSpecific()
{ {
base.RemoveComponentSpecific(); base.RemoveComponentSpecific();