Queue LightTree update on light states (#4385)

Might fix some more issues.
This commit is contained in:
metalgearsloth
2023-09-15 04:03:25 +10:00
committed by GitHub
parent 71c46828c2
commit 2abf33c9be

View File

@@ -25,13 +25,15 @@ namespace Robust.Client.GameObjects
if (args.Current is not PointLightComponentState state)
return;
SetEnabled(uid, state.Enabled, component);
component.Enabled = state.Enabled;
component.Offset = state.Offset;
component.Softness = state.Softness;
component.CastShadows = state.CastShadows;
component.Energy = state.Energy;
component.Radius = state.Radius;
component.Color = state.Color;
_lightTree.QueueTreeUpdate(uid, component);
}
public override SharedPointLightComponent EnsureLight(EntityUid uid)