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

@@ -44,7 +44,7 @@ public final class AccountCommand implements CommandHandler {
}
}
emu.grasscutter.game.Account account = DatabaseHelper.createAccountWithId(username, uid);
emu.grasscutter.game.Account account = DatabaseHelper.createAccountWithUid(username, uid);
if (account == null) {
CommandHandler.sendMessage(null, translate(sender, "commands.account.exists"));
return;