fix lantern visualizer animation error (#4800)
* fix lantern-visualizer * remove deleted check * Remove other component.Deleted checks
This commit is contained in:
@@ -34,6 +34,9 @@ namespace Content.Client.Light
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
|
||||
if (!component.Initialized)
|
||||
return;
|
||||
|
||||
PlayAnimation(component);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,11 +15,6 @@ namespace Content.Client.Light.Visualizers
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
|
||||
if (component.Deleted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (component.TryGetData(ExpendableLightVisuals.Behavior, out string lightBehaviourID))
|
||||
{
|
||||
if (component.Owner.TryGetComponent<LightBehaviourComponent>(out var lightBehaviour))
|
||||
|
||||
@@ -59,10 +59,6 @@ namespace Content.Client.Light.Visualizers
|
||||
public override void OnChangeData(AppearanceComponent component)
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
if (component.Deleted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (component.TryGetData(HandheldLightVisuals.Power,
|
||||
out HandheldLightPowerStates state))
|
||||
|
||||
Reference in New Issue
Block a user