From 4a703c938de955e95ae76a5812b38f14ebb18581 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Thu, 25 Apr 2024 14:47:32 -0400 Subject: [PATCH] Add load message handler for too many connections --- src/system/game-data.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/system/game-data.ts b/src/system/game-data.ts index cd8f38d9a99..23c3f24affb 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -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);