修正逻辑错误
This commit is contained in:
parent
a5245d315d
commit
d052495ee7
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue