From 2b2e2d6fe3969d4aadc0915486ee8c925baa2760 Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Wed, 3 Dec 2025 13:02:04 +0200 Subject: [PATCH] Fix itch integration ruining commander's name --- OpenRA.Mods.Common/ItchIntegration.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.Common/ItchIntegration.cs b/OpenRA.Mods.Common/ItchIntegration.cs index 95a1a8c455..6002e6a4b1 100644 --- a/OpenRA.Mods.Common/ItchIntegration.cs +++ b/OpenRA.Mods.Common/ItchIntegration.cs @@ -75,16 +75,16 @@ namespace OpenRA.Mods.Common } } - var name = ""; if (user != null) { + string name; if (string.IsNullOrEmpty(user.DisplayName)) name = user.Username; else name = user.DisplayName; - } - Game.RunAfterTick(() => callback?.Invoke(name)); + Game.RunAfterTick(() => callback?.Invoke(name)); + } }); } }