Fix itch integration ruining commander's name

This commit is contained in:
Gustas
2025-12-03 13:02:04 +02:00
committed by Gustas Kažukauskas
parent 027e38ee69
commit 2b2e2d6fe3

View File

@@ -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));
}
});
}
}