Make readonly instead

This commit is contained in:
Dean Herbert 2018-09-13 14:03:21 +09:00
parent 0be3ba946f
commit 4341d258af
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ namespace osu.Game.Online.Chat
Timestamp = DateTimeOffset.Now;
Content = message;
Sender = User.SystemUser;
Sender = User.SYSTEM_USER;
}
}
}

View File

@ -77,7 +77,7 @@ namespace osu.Game.Overlays
public void ShowUser(User user, bool fetchOnline = true)
{
if (user == User.SystemUser) return;
if (user == User.SYSTEM_USER) return;
Show();

View File

@ -148,7 +148,7 @@ namespace osu.Game.Users
/// <summary>
/// A user instance for displaying locally created system messages.
/// </summary>
public static User SystemUser { get; } = new User
public static readonly User SYSTEM_USER = new User
{
Username = "system",
Id = 0