Fix missing entities in round summary window (#23032)
This commit is contained in:
@@ -125,19 +125,15 @@ namespace Content.Client.RoundEnd
|
|||||||
VerticalExpand = true,
|
VerticalExpand = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
var playerUid = _entityManager.GetEntity(playerInfo.PlayerNetEntity);
|
if (playerInfo.PlayerNetEntity != null)
|
||||||
|
|
||||||
if (_entityManager.HasComponent<SpriteComponent>(playerUid))
|
|
||||||
{
|
{
|
||||||
var spriteView = new SpriteView
|
hBox.AddChild(new SpriteView(playerInfo.PlayerNetEntity.Value, _entityManager)
|
||||||
{
|
{
|
||||||
OverrideDirection = Direction.South,
|
OverrideDirection = Direction.South,
|
||||||
VerticalAlignment = VAlignment.Center,
|
VerticalAlignment = VAlignment.Center,
|
||||||
SetSize = new Vector2(32, 32),
|
SetSize = new Vector2(32, 32),
|
||||||
VerticalExpand = true,
|
VerticalExpand = true,
|
||||||
};
|
});
|
||||||
spriteView.SetEntity(playerUid);
|
|
||||||
hBox.AddChild(spriteView);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playerInfo.PlayerICName != null)
|
if (playerInfo.PlayerICName != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user