Don't update user info on save for optimization
parent
4fcea107ab
commit
72b4552b01
|
@ -250,11 +250,6 @@ export class GameData {
|
||||||
public saveSystem(): Promise<boolean> {
|
public saveSystem(): Promise<boolean> {
|
||||||
return new Promise<boolean>(resolve => {
|
return new Promise<boolean>(resolve => {
|
||||||
this.scene.ui.savingIcon.show();
|
this.scene.ui.savingIcon.show();
|
||||||
updateUserInfo().then(response => {
|
|
||||||
if (!response[0]) {
|
|
||||||
this.scene.ui.savingIcon.hide();
|
|
||||||
return resolve(false);
|
|
||||||
}
|
|
||||||
const data: SystemSaveData = {
|
const data: SystemSaveData = {
|
||||||
trainerId: this.trainerId,
|
trainerId: this.trainerId,
|
||||||
secretId: this.secretId,
|
secretId: this.secretId,
|
||||||
|
@ -302,7 +297,6 @@ export class GameData {
|
||||||
resolve(true);
|
resolve(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public loadSystem(): Promise<boolean> {
|
public loadSystem(): Promise<boolean> {
|
||||||
|
|
Loading…
Reference in New Issue