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

@@ -53,7 +53,7 @@ namespace Content.Client.Light.Components
if (Enabled && _entMan.TryGetComponent(_parent, out PointLightComponent? light))
{
light.Enabled = true;
_entMan.System<PointLightSystem>().SetEnabled(_parent, true, light);
}
OnInitialize();
@@ -63,7 +63,7 @@ namespace Content.Client.Light.Components
{
if (_entMan.TryGetComponent(_parent, out PointLightComponent? light))
{
light.Enabled = true;
_entMan.System<PointLightSystem>().SetEnabled(_parent, true, light);
}
if (MinDuration > 0)