Remove lights compref (#19531)
This commit is contained in:
@@ -61,7 +61,10 @@ public sealed class DeployableBarrierSystem : EntitySystem
|
||||
if (TryComp(uid, out SharedPullableComponent? pullable))
|
||||
_pulling.TryStopPull(pullable);
|
||||
|
||||
if (TryComp(uid, out SharedPointLightComponent? light))
|
||||
_pointLight.SetEnabled(uid, isDeployed, light);
|
||||
SharedPointLightComponent? pointLight = null;
|
||||
if (_pointLight.ResolveLight(uid, ref pointLight))
|
||||
{
|
||||
_pointLight.SetEnabled(uid, isDeployed, pointLight);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user