Fix game not loading if save data is not found

This commit is contained in:
Flashfyre committed 2024-04-01 15:18:15 -04:00
1 parent e6c7f5dc77
commit a3e09ee5cc
3 files changed
+5 -50

No files matched your search

+4
View File
@@ -354,6 +354,10 @@ export class GameData {
.then(response => response.text())
.then(response => {
if (!response.length || response[0] !== '{') {
if (response.startsWith('failed to read 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);
}
console.error(response);
return resolve(false);
}