mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 17:51:53 +00:00
Fix account dupe key error after selecting starting character
This commit is contained in:
parent
c8100394d9
commit
e10bad5b17
@ -170,7 +170,6 @@ public class GenshinPlayer {
|
|||||||
|
|
||||||
public void setUid(int id) {
|
public void setUid(int id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.getProfile().syncWithCharacter(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getNextGenshinGuid() {
|
public long getNextGenshinGuid() {
|
||||||
@ -353,7 +352,6 @@ public class GenshinPlayer {
|
|||||||
public PlayerProfile getProfile() {
|
public PlayerProfile getProfile() {
|
||||||
if (this.playerProfile == null) {
|
if (this.playerProfile == null) {
|
||||||
this.playerProfile = new PlayerProfile(this);
|
this.playerProfile = new PlayerProfile(this);
|
||||||
this.save();
|
|
||||||
}
|
}
|
||||||
return playerProfile;
|
return playerProfile;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user