Commit 2de215e8 authored by nanahira's avatar nanahira

fix unready thing

parent cca0ec06
......@@ -339,12 +339,7 @@ export class WaitForPlayerProvider {
}
private getReadyTimeoutTarget(room: Room) {
const players = room.playingPlayers.filter(
(player) =>
!player.disconnected &&
player.roomName === room.name &&
player.pos < NetPlayerType.OBSERVER,
);
const players = room.playingPlayers;
const requiredPlayerCount = room.players.length;
if (players.length < requiredPlayerCount) {
return undefined;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment