Fixed LightComponents staying active on broken items. Closes #759
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user