Add load message handler for too many connections

This commit is contained in:
Flashfyre 2024-04-25 14:47:32 -04:00
parent fa463b77db
commit 4a703c938d

View File

@ -421,6 +421,9 @@ export class GameData {
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);
} else if (response.indexOf('Too many connections') > -1) {
this.scene.queueMessage('Too many people are trying to connect and the server is overloaded. Please try again later.', null, true);
return resolve(false);
}
console.error(response);
return resolve(false);