Fix itch integration ruining commander's name
This commit is contained in:
committed by
Gustas Kažukauskas
parent
027e38ee69
commit
2b2e2d6fe3
@@ -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));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user