1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

fixed server parser setup bug I was retarded about

This commit is contained in:
RaidMax
2020-01-24 08:57:20 -06:00
parent c17ee0a352
commit 8c3ea779f2

View File

@ -63,7 +63,7 @@ namespace SharedLibraryCore.Configuration
if (selection.Item1 >= 0)
{
RConParserVersion = selection.Item2;
RConParserVersion = rconParsers.First(_parser => _parser.Name == selection.Item2).Version;
if (selection.Item1 > 0 && !rconParsers[selection.Item1 - 1].CanGenerateLogPath)
{
@ -72,12 +72,12 @@ namespace SharedLibraryCore.Configuration
}
}
parserVersions = eventParsers.Select(_parser => _parser.Version).ToArray();
parserVersions = eventParsers.Select(_parser => _parser.Name).ToArray();
selection = Utilities.PromptSelection($"{loc["SETUP_SERVER_EVENT_PARSER_VERSION"]} ({IPAddress}:{Port})", $"{loc["SETUP_PROMPT_DEFAULT"]} (Call of Duty)", null, parserVersions);
if (selection.Item1 >= 0)
{
EventParserVersion = selection.Item2;
EventParserVersion = eventParsers.First(_parser => _parser.Name == selection.Item2).Version;
}
}