Fix bug with accounts being unable to create new saves
This commit is contained in:
parent
b231b887aa
commit
c1cff02a18
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue