Remove usages of obsolete SpriteView.Sprite.set() (#19500)
This commit is contained in:
@@ -107,12 +107,12 @@ namespace Content.Client.ContextMenu.UI
|
||||
// _entityManager.Deleted() implicitly checks all of these.
|
||||
if (_entityManager.Deleted(entity))
|
||||
{
|
||||
Icon.Sprite = null;
|
||||
Icon.SetEntity(null);
|
||||
Text = string.Empty;
|
||||
}
|
||||
else
|
||||
{
|
||||
Icon.Sprite = _entityManager.GetComponentOrNull<SpriteComponent>(entity);
|
||||
Icon.SetEntity(entity);
|
||||
Text = GetEntityDescription(entity.Value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user