Skip to content

Commit

Permalink
Fix minigame balancer not checking if server is joinable
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Sep 15, 2022
1 parent 131d556 commit 2b66918
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -32,7 +32,7 @@ public AdaptedServer getIdealServer(AdaptedPlayer player) {
if(!si.isOnline()) continue;
int online = si.getPlayerCount();
int max = si.getMaxPlayers();
if(online < max) {
if(online < max && si.isJoinable(player)) {
return si;
}
}
Expand Down

0 comments on commit 2b66918

Please sign in to comment.