mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-13 13:54:37 +01:00
Fixed account generation without a reserved uid
This commit is contained in:
@@ -78,7 +78,10 @@ public class ServerCommands {
|
|||||||
//String password = split[2];
|
//String password = split[2];
|
||||||
|
|
||||||
// Reserved player uid
|
// 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
|
// Get acocunt from database
|
||||||
account = LunarRail.getAccountDatabase().getObjectByField(emu.lunarcore.game.account.Account.class, "username", username);
|
account = LunarRail.getAccountDatabase().getObjectByField(emu.lunarcore.game.account.Account.class, "username", username);
|
||||||
|
|||||||
Reference in New Issue
Block a user