Update missing save data handling

pull/86/head
Flashfyre 2024-04-11 00:18:16 -04:00
parent b9a068e3b7
commit 75075c6fab
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}