修正逻辑错误

This commit is contained in:
SerendipityR 2022-08-23 01:39:46 +08:00 committed by GitHub
parent a5245d315d
commit d052495ee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@ public class BotAttack extends IAttack {
alivePlayers.remove(username);
clientName.remove(client);
clients.remove(client);
} else if (!alivePlayers.contains(username)) {
} else if (!alivePlayers.contains(username) && (client.getSession().hasFlag("login") || client.getSession().hasFlag("join"))) {
alivePlayers.add(username);
}
}

View File

@ -191,7 +191,7 @@ public class NewBotAttack extends IAttack {
alivePlayers.remove(username);
clientName.remove(client);
clients.remove(client);
} else if (!alivePlayers.contains(username)) {
} else if (!alivePlayers.contains(username) && (client.hasFlag("login") || client.hasFlag("join"))) {
alivePlayers.add(username);
}
}

View File

@ -178,7 +178,7 @@ public class BotAttack extends IAttack {
alivePlayers.remove(username);
clientName.remove(client);
clients.remove(client);
} else if (!alivePlayers.contains(username)) {
} else if (!alivePlayers.contains(username) && (client.getSession().hasFlag("login") || client.getSession().hasFlag("join"))) {
alivePlayers.add(username);
}
}