Fix database error when loading friend list

This commit is contained in:
Melledy
2025-11-14 07:50:05 -08:00
parent 66c6554bb9
commit 9c5eb2c637

View File

@@ -247,7 +247,7 @@ public class FriendList extends PlayerManager {
// Database
public synchronized void loadFromDatabase() {
var friendships = Nebula.getGameDatabase().getObjects(Friendship.class, "ownerUid", this.getPlayer().getUid());
var friendships = Nebula.getGameDatabase().getObjects(Friendship.class, "playerUid", this.getPlayer().getUid());
friendships.forEach(friendship -> {
// Set ownership first