Don't assign players to derelict

This commit is contained in:
Anuken
2021-06-25 14:11:36 -04:00
parent cb2ed1c549
commit 3d6cfcafd0
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ public class NetServer implements ApplicationListener{
if(state.rules.pvp){
//find team with minimum amount of players and auto-assign player to that.
TeamData re = state.teams.getActive().min(data -> {
if((state.rules.waveTeam == data.team && state.rules.waves) || !data.team.active()) return Integer.MAX_VALUE;
if((state.rules.waveTeam == data.team && state.rules.waves) || !data.team.active() || data.team == Team.derelict) return Integer.MAX_VALUE;
int count = 0;
for(Player other : players){