Update missing save data handling
parent
b9a068e3b7
commit
75075c6fab
|
@ -22,7 +22,6 @@ export function updateUserInfo(): Promise<[boolean, integer]> {
|
|||
return resolve([ true, 200 ]);
|
||||
}
|
||||
Utils.apiFetch('account/info').then(response => {
|
||||
console.log(response.status);
|
||||
if (!response.ok) {
|
||||
resolve([ false, response.status ]);
|
||||
return;
|
||||
|
|
|
@ -360,7 +360,7 @@ export class GameData {
|
|||
.then(response => response.text())
|
||||
.then(response => {
|
||||
if (!response.length || response[0] !== '{') {
|
||||
if (response.startsWith('failed to read save file')) {
|
||||
if (response.startsWith('failed to open save file')) {
|
||||
this.scene.queueMessage('Save data could not be found. If this is a new account, you can safely ignore this message.', null, true);
|
||||
return resolve(true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue