clientloader: don't use fallback config or client when jav_config is manually specified

This commit is contained in:
Adam
2021-05-11 19:19:21 -04:00
parent ab7023fac5
commit 52dc8f85a7

View File

@@ -143,7 +143,7 @@ public class ClientLoader implements Supplier<Applet>
catch (IOException ex)
{
// try again with the fallback config and gamepack
if (!config.isFallback())
if (javConfigUrl.equals(RuneLiteProperties.getJavConfig()) && !config.isFallback())
{
log.warn("Unable to download game client, attempting to use fallback config", ex);
config = downloadFallbackConfig();
@@ -404,7 +404,7 @@ public class ClientLoader implements Supplier<Applet>
log.warn("Failed to download gamepack from \"{}\"", url, e);
// With fallback config do 1 attempt (there are no additional urls to try)
if (config.isFallback() || attempt >= NUM_ATTEMPTS)
if (!javConfigUrl.equals(RuneLiteProperties.getJavConfig()) || config.isFallback() || attempt >= NUM_ATTEMPTS)
{
throw e;
}