Skip to content

Commit 9074fdf

Browse files
committed
Fix wrong players list being checked for max players
Fixes #155
1 parent c5c8942 commit 9074fdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/src/main/java/org/battleplugins/arena/competition/LiveCompetition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public CompletableFuture<JoinResult> canJoin(Collection<Player> players, PlayerR
106106
// the overall maximum number of players this competition can have
107107
if (teams.getTeamSelection() == TeamSelection.PICK || teams.isNonTeamGame()) {
108108
// Player cannot join - arena is full
109-
if ((this.getPlayers().size() + this.players.size()) > this.maxPlayers) {
109+
if ((this.getPlayers().size() + players.size()) > this.maxPlayers) {
110110
return CompletableFuture.completedFuture(JoinResult.ARENA_FULL);
111111
}
112112
} else {

0 commit comments

Comments
 (0)