fix lantern visualizer animation error (#4800)
* fix lantern-visualizer * remove deleted check * Remove other component.Deleted checks
This commit is contained in:
@@ -17,11 +17,6 @@ namespace Content.Client.Atmos.Visualizers
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
|
||||
if (component.Deleted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!component.Owner.TryGetComponent(out ISpriteComponent? sprite))
|
||||
{
|
||||
return;
|
||||
|
||||
@@ -29,11 +29,6 @@ namespace Content.Client.Atmos.Visualizers
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
|
||||
if (component.Deleted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!component.Owner.TryGetComponent(out ISpriteComponent? sprite))
|
||||
{
|
||||
return;
|
||||
|
||||
@@ -37,11 +37,6 @@ namespace Content.Client.Chemistry.Visualizers
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
|
||||
if (component.Deleted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (component.TryGetData<Angle>(VaporVisuals.Rotation, out var radians))
|
||||
{
|
||||
SetRotation(component, radians);
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -15,11 +15,6 @@ namespace Content.Client.Pointing
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
|
||||
if (component.Deleted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (component.TryGetData<double>(RoguePointingArrowVisuals.Rotation, out var degrees))
|
||||
{
|
||||
SetRotation(component, Angle.FromDegrees(degrees));
|
||||
|
||||
Reference in New Issue
Block a user