Minor appearance changes (#2370)
* Minor appearance changes * Remove that redundant deleted property * Fixes and remove redundant checks Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com> Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
This commit is contained in:
@@ -49,10 +49,7 @@ namespace Content.Client.GameObjects.Components.PDA
|
||||
public override void OnChangeData(AppearanceComponent component)
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
if (component.Owner.Deleted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var sprite = component.Owner.GetComponent<ISpriteComponent>();
|
||||
sprite.LayerSetVisible(PDAVisualLayers.Flashlight, false);
|
||||
if (component.TryGetData(PDAVisuals.FlashlightLit, out bool isScreenLit))
|
||||
|
||||
Reference in New Issue
Block a user