Fix game not loading if save data is not found
This commit is contained in:
1 parent
e6c7f5dc77
commit
a3e09ee5cc
3 files changed
+5
-50
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user