mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-22 05:12:58 +12:00
Issue #239: Quick hotfix for error that comes if older version of BS is installed
This commit is contained in:
parent
215bc0f081
commit
1c8ae4e604
|
@ -195,13 +195,17 @@ namespace ModAssistant
|
|||
Dictionary<string, object> Objects = (Dictionary<string, object>)aliases;
|
||||
foreach (string version in versions)
|
||||
{
|
||||
object[] aliasArray = (object[])Objects[version];
|
||||
foreach (object alias in aliasArray)
|
||||
object x;
|
||||
if (Objects.TryGetValue(version, out x))
|
||||
{
|
||||
if (alias.ToString() == detectedVersion)
|
||||
object[] aliasArray = (object[])x;
|
||||
foreach (object alias in aliasArray)
|
||||
{
|
||||
GameVersionOverride = detectedVersion;
|
||||
return version;
|
||||
if (alias.ToString() == detectedVersion)
|
||||
{
|
||||
GameVersionOverride = detectedVersion;
|
||||
return version;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue