Fixed PvP core assignment

This commit is contained in:
Anuken 2019-06-08 14:41:35 -04:00
parent 6226e0c5a3
commit fd5d0b2cbb

View File

@ -197,7 +197,7 @@ public class NetServer implements ApplicationListener{
public Team assignTeam(Iterable<Player> players){
//find team with minimum amount of players and auto-assign player to that.
return Structs.findMin(Team.all, team -> {
if(state.teams.isActive(team)){
if(state.teams.isActive(team) && !state.teams.get(team).cores.isEmpty()){
int count = 0;
for(Player other : players){
if(other.getTeam() == team){