Remove lights compref (#19531)

This commit is contained in:
metalgearsloth
2023-09-11 19:18:06 +10:00
committed by GitHub
parent d315ce3c8c
commit 99b77bc2d3
64 changed files with 222 additions and 132 deletions

View File

@@ -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);
}
}
}