ToPrettyString in end game rule completions (#16374)
This commit is contained in:
parent
32ccf45fbe
commit
a0b2f9ddf5
1 changed files with 2 additions and 1 deletions
|
|
@ -255,7 +255,8 @@ public sealed partial class GameTicker
|
|||
|
||||
private CompletionResult EndGameRuleCompletions(IConsoleShell shell, string[] args)
|
||||
{
|
||||
return CompletionResult.FromHintOptions(GetAddedGameRules().Select(u => u.ToString()), "<added rule>");
|
||||
var opts = GetAddedGameRules().Select(ent => new CompletionOption(ent.ToString(), ToPrettyString(ent))).ToList();
|
||||
return CompletionResult.FromHintOptions(opts, "<added rule>");
|
||||
}
|
||||
|
||||
[AdminCommand(AdminFlags.Fun)]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue