Add load message handler for too many connections

This commit is contained in:
Flashfyre committed 2024-04-25 14:47:32 -04:00
1 parent fa463b77db
commit 4a703c938d
1 file changed
+3
+3
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);