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){

View File

@ -10,4 +10,4 @@ kapt.include.compile.classpath=false
kotlin.stdlib.default.dependency=false
#needed for android compilation
android.useAndroidX=true
archash=57b86e6bf0312aa8e8bc3b737c7d8f31fbe7a162
archash=41e8bb990244cd77c49e2b789bf9fc5374a711df