Fix bug with accounts being unable to create new saves

pull/457/merge
maru 2024-05-09 06:22:33 -04:00
parent b231b887aa
commit c1cff02a18
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ export class GameData {
.then(response => response.text()) .then(response => response.text())
.then(response => { .then(response => {
if (!response.length || response[0] !== '{') { if (!response.length || response[0] !== '{') {
if (response.startsWith('failed to open save file')) { if (response.startsWith('no rows in result set')) {
this.scene.queueMessage('Save data could not be found. If this is a new account, you can safely ignore this message.', null, true); 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); return resolve(true);
} else if (response.indexOf('Too many connections') > -1) { } else if (response.indexOf('Too many connections') > -1) {