From f17404021b392d24c42072febfe2a4026184aa3d Mon Sep 17 00:00:00 2001 From: Marcin Badurowicz Date: Wed, 18 Mar 2026 16:03:31 +0100 Subject: [PATCH] fix: working special characters --- Server/Components/Pages/GamePage.razor.cs | 4 ++-- Server/Modules/MapGenerator/UI/MapView.razor | 2 +- Server/Modules/MapGenerator/UI/Models/SpecialChars.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Server/Components/Pages/GamePage.razor.cs b/Server/Components/Pages/GamePage.razor.cs index 7e08fd6..cc7ca73 100644 --- a/Server/Components/Pages/GamePage.razor.cs +++ b/Server/Components/Pages/GamePage.razor.cs @@ -21,7 +21,7 @@ public partial class GamePage protected override async Task OnInitializedAsync() { - bool userLoaded = await LoadUser(); + bool userLoaded = await LoadUserAsync(); if (!userLoaded) { NavigationManager.NavigateTo("/"); @@ -54,7 +54,7 @@ protected override async Task OnInitializedAsync() await base.OnInitializedAsync(); } - private async Task LoadUser() + private async Task LoadUserAsync() { var username = await ProtectedSessionStore.GetAsync("username"); if (!username.Success) diff --git a/Server/Modules/MapGenerator/UI/MapView.razor b/Server/Modules/MapGenerator/UI/MapView.razor index 3107414..a12a975 100644 --- a/Server/Modules/MapGenerator/UI/MapView.razor +++ b/Server/Modules/MapGenerator/UI/MapView.razor @@ -22,7 +22,7 @@ @if (MapDisplayOptions.ShowPlayer && x == CharacterX && y == CharacterY) { - @SpecialChars.Icons.Player + 😐 } else if (MapDisplayOptions.TileInformationDisplay == TileInformationDisplay.Position) diff --git a/Server/Modules/MapGenerator/UI/Models/SpecialChars.cs b/Server/Modules/MapGenerator/UI/Models/SpecialChars.cs index 0e22eaa..8131f95 100644 --- a/Server/Modules/MapGenerator/UI/Models/SpecialChars.cs +++ b/Server/Modules/MapGenerator/UI/Models/SpecialChars.cs @@ -16,6 +16,6 @@ public static class Arrows public static class Icons { - public const string Player = "😐"; + public const string Player = "😐"; } }