1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

compare directly instead of comparing IDs

This commit is contained in:
Nathan Alo 2021-06-24 10:10:57 +08:00
parent 73590bfca1
commit 564c72bf74

View File

@ -240,7 +240,7 @@ namespace osu.Game.Overlays.Chat
{ {
get get
{ {
if (sender.Id == User.SYSTEM_USER.Id) if (sender == User.SYSTEM_USER)
return Array.Empty<MenuItem>(); return Array.Empty<MenuItem>();
List<MenuItem> items = new List<MenuItem> List<MenuItem> items = new List<MenuItem>