Refactor and optimize DatabaseHelper::checkIfPlayerExists

This commit is contained in:
Melledy
2022-06-03 19:32:10 -07:00
parent 06546707e1
commit 910a5749f0
3 changed files with 26 additions and 22 deletions

View File

@@ -36,7 +36,7 @@ public final class DefaultAuthenticators {
// Check if account exists.
if(account == null && ACCOUNT.autoCreate) {
// This account has been created AUTOMATICALLY. There will be no permissions added.
account = DatabaseHelper.createAccountWithId(requestData.account, 0);
account = DatabaseHelper.createAccountWithUid(requestData.account, 0);
// Check if the account was created successfully.
if(account == null) {