mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-14 19:15:08 -05:00
Assume account auth when account index is specified
This commit is contained in:
parent
332f37804f
commit
6ff8f62aca
1 changed files with 2 additions and 1 deletions
|
@ -150,7 +150,8 @@ public class ViaProxyConfig extends Config implements com.viaversion.viaversion.
|
|||
this.authMethod = options.valueOf(this.optionAuthMethod);
|
||||
final List<Account> accounts = ViaProxy.getSaveManager().accountsSave.getAccounts();
|
||||
final int accountIndex = options.valueOf(this.optionMinecraftAccountIndex);
|
||||
if (this.authMethod == AuthMethod.ACCOUNT && accountIndex >= 0 && accountIndex < accounts.size()) {
|
||||
if (options.has(this.optionMinecraftAccountIndex) && accountIndex >= 0 && accountIndex < accounts.size()) {
|
||||
this.authMethod = AuthMethod.ACCOUNT;
|
||||
this.account = accounts.get(accountIndex);
|
||||
} else {
|
||||
this.account = null;
|
||||
|
|
Loading…
Reference in a new issue