mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-13 22:04:36 +01:00
Fix an issue with player lineups being saved with no ownerUid
This commit is contained in:
@@ -132,9 +132,12 @@ public class Player {
|
||||
// Called when player is created
|
||||
public Player(GameSession session) {
|
||||
this();
|
||||
this.resetPosition();
|
||||
this.session = session;
|
||||
this.accountUid = getAccount().getUid();
|
||||
this.initUid();
|
||||
this.resetPosition();
|
||||
|
||||
// Setup player data
|
||||
this.name = GameConstants.DEFAULT_NAME;
|
||||
this.signature = "";
|
||||
this.headIcon = 200001;
|
||||
@@ -146,9 +149,6 @@ public class Player {
|
||||
this.lineupManager = new LineupManager(this);
|
||||
this.gachaInfo = new PlayerGachaInfo();
|
||||
|
||||
// Setup uid
|
||||
this.initUid();
|
||||
|
||||
// Setup hero paths
|
||||
this.getAvatars().setupHeroPaths();
|
||||
|
||||
@@ -157,6 +157,7 @@ public class Player {
|
||||
GameAvatar avatar = new GameAvatar(GameConstants.TRAILBLAZER_AVATAR_ID);
|
||||
this.addAvatar(avatar);
|
||||
this.getCurrentLineup().getAvatars().add(avatar.getAvatarId());
|
||||
this.getCurrentLineup().save();
|
||||
}
|
||||
|
||||
public GameServer getServer() {
|
||||
|
||||
Reference in New Issue
Block a user