Remove lights compref (#19531)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user