From c164b25f90aef9ace97eb5b04c9f3588706a2b5a Mon Sep 17 00:00:00 2001 From: Yazawazi <47273265+Yazawazi@users.noreply.github.com> Date: Sat, 28 May 2022 01:04:27 +0800 Subject: [PATCH] fix(database helper): fix player uid issues --- src/main/java/emu/grasscutter/database/DatabaseHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/database/DatabaseHelper.java b/src/main/java/emu/grasscutter/database/DatabaseHelper.java index 057b450cb..466cedc6b 100644 --- a/src/main/java/emu/grasscutter/database/DatabaseHelper.java +++ b/src/main/java/emu/grasscutter/database/DatabaseHelper.java @@ -97,7 +97,7 @@ public final class DatabaseHelper { } public static Account getAccountByPlayerId(int playerId) { - return DatabaseManager.getGameDatastore().find(Account.class).filter(Filters.eq("playerId", playerId)).first(); + return DatabaseManager.getGameDatastore().find(Account.class).filter(Filters.eq("reservedPlayerId", playerId)).first(); } public static void deleteAccount(Account target) {