diff options
Diffstat (limited to 'code/ui/character')
| -rw-r--r-- | code/ui/character/LookingAtInfo.razor | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/ui/character/LookingAtInfo.razor b/code/ui/character/LookingAtInfo.razor index 4a54b81..098feb4 100644 --- a/code/ui/character/LookingAtInfo.razor +++ b/code/ui/character/LookingAtInfo.razor @@ -41,13 +41,13 @@ lookingatinfo { public string GetLookingAtName()
{
if (Game.LocalPawn is not Player player) return "";
- return player.LookingAt is not { } lookingAt ? "" : lookingAt.CharacterName;
+ return player.LookingAt is not { } lookingAt ? "" : (lookingAt.CharacterName ?? lookingAt.Client.Name);
}
public string GetLookingAtColour()
{
if (Game.LocalPawn is not Player player) return "white";
- return player.LookingAt is not { } lookingAt ? "white" : lookingAt.HexColor;
+ return player.LookingAt is not { } lookingAt ? "white" : (string.IsNullOrWhiteSpace(lookingAt.HexColor) ? "white" : lookingAt.HexColor);
}
protected override int BuildHash()
|
