fixed server parser setup bug I was retarded about
This commit is contained in:
parent
9e345752f2
commit
e6bdcc9012
@ -63,7 +63,7 @@ namespace SharedLibraryCore.Configuration
|
|||||||
|
|
||||||
if (selection.Item1 >= 0)
|
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)
|
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);
|
selection = Utilities.PromptSelection($"{loc["SETUP_SERVER_EVENT_PARSER_VERSION"]} ({IPAddress}:{Port})", $"{loc["SETUP_PROMPT_DEFAULT"]} (Call of Duty)", null, parserVersions);
|
||||||
|
|
||||||
if (selection.Item1 >= 0)
|
if (selection.Item1 >= 0)
|
||||||
{
|
{
|
||||||
EventParserVersion = selection.Item2;
|
EventParserVersion = eventParsers.First(_parser => _parser.Name == selection.Item2).Version;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user