Fixed account generation without a reserved uid

This commit is contained in:
Melledy
2023-09-28 04:25:20 -07:00
parent 5eb0d3de1f
commit b9fcebb401

View File

@@ -78,7 +78,10 @@ public class ServerCommands {
//String password = split[2];
// Reserved player uid
int reservedUid = Utils.parseSafeInt(split[2]);
int reservedUid = 0;
if (split.length >= 3) {
reservedUid = Utils.parseSafeInt(split[2]);
}
// Get acocunt from database
account = LunarRail.getAccountDatabase().getObjectByField(emu.lunarcore.game.account.Account.class, "username", username);