fix context menu bugs (#5527)
This commit is contained in:
@@ -57,7 +57,8 @@ namespace Content.Client.ContextMenu.UI
|
||||
/// </summary>
|
||||
public void UpdateEntity(IEntity? entity = null)
|
||||
{
|
||||
entity ??= Entity;
|
||||
if (Entity != null && !Entity.Deleted)
|
||||
entity ??= Entity;
|
||||
|
||||
EntityIcon.Sprite = entity?.GetComponentOrNull<ISpriteComponent>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user