Fixed OpenAuthMod auth status not resetting when changing auth method

This commit is contained in:
RaphiMC 2023-06-08 16:34:28 +02:00
parent 8fe0c231a9
commit 2aee84ff1c
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94

View File

@ -258,16 +258,16 @@ public class GeneralTab extends AUITab {
Options.PROTOCOL_VERSION = serverVersion;
Options.BETACRAFT_AUTH = betaCraftAuth;
Options.LEGACY_SKIN_LOADING = legacySkinLoading;
Options.OPENAUTHMOD_AUTH = authMethod == 2;
if (authMethod == 2) {
Options.OPENAUTHMOD_AUTH = true;
}
if (!proxyUrl.isEmpty()) {
try {
Options.PROXY_URL = new URI(proxyUrl);
} catch (URISyntaxException e) {
throw new IllegalArgumentException("Invalid proxy URL!");
}
} else {
Options.PROXY_URL = null;
}
} catch (Throwable t) {
SwingUtilities.invokeLater(() -> {