mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-08 23:07:33 +07:00
Fixed PvP core assignment
This commit is contained in:
@ -197,7 +197,7 @@ public class NetServer implements ApplicationListener{
|
|||||||
public Team assignTeam(Iterable<Player> players){
|
public Team assignTeam(Iterable<Player> players){
|
||||||
//find team with minimum amount of players and auto-assign player to that.
|
//find team with minimum amount of players and auto-assign player to that.
|
||||||
return Structs.findMin(Team.all, team -> {
|
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;
|
int count = 0;
|
||||||
for(Player other : players){
|
for(Player other : players){
|
||||||
if(other.getTeam() == team){
|
if(other.getTeam() == team){
|
||||||
|
Reference in New Issue
Block a user