diff --git a/src/handlers/misc/READY.ts b/src/handlers/misc/READY.ts index 56188fdd7..a36da53b6 100644 --- a/src/handlers/misc/READY.ts +++ b/src/handlers/misc/READY.ts @@ -76,7 +76,7 @@ function loaded(shardId: number) { shard.ready = true; // If it is the last shard we can go full ready - if (shardId === ws.lastShardId - 1) { + if (shardId === ws.maxShards - 1) { // Still some shards are loading so wait another 2 seconds for them if (ws.shards.some((shard) => !shard.ready)) { setTimeout(() => {