Better lighting

This commit is contained in:
Anuken
2020-02-28 13:44:03 -05:00
10 changed files with 27 additions and 12 deletions

View File

@@ -45,6 +45,8 @@ 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 || !data.team.active()) return Integer.MAX_VALUE;
int count = 0;
for(Playerc other : players){
if(other.team() == data.team && other != player){