mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Exclude bots from player counts
This commit is contained in:
@@ -60,7 +60,8 @@ public class PlayerHandler {
|
||||
for (int i = 0; i < Constants.MAX_PLAYERS; i++) {
|
||||
if (players[i] != null) {
|
||||
playersCurrentlyOn[i] = players[i].playerName;
|
||||
playerCount++;
|
||||
if (!players[i].isBot)
|
||||
playerCount++;
|
||||
} else {
|
||||
playersCurrentlyOn[i] = "";
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user