mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-13 21:04:36 +01:00
Fix database error when loading friend list
This commit is contained in:
@@ -247,7 +247,7 @@ public class FriendList extends PlayerManager {
|
|||||||
// Database
|
// Database
|
||||||
|
|
||||||
public synchronized void loadFromDatabase() {
|
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 -> {
|
friendships.forEach(friendship -> {
|
||||||
// Set ownership first
|
// Set ownership first
|
||||||
|
|||||||
Reference in New Issue
Block a user