mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-24 13:31:45 -08:00
Minor assignment tweak
This commit is contained in:
parent
501e909039
commit
c8a762df42
2 changed files with 3 additions and 1 deletions
|
|
@ -48,6 +48,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(Player other : players){
|
||||
if(other.getTeam() == data.team && other != player){
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=b0cce39a1f4ea1c4c4a07ce750d5c30f451b34c2
|
||||
archash=d8ea4539e93211d2134b806e7f4997ce09a491e2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue