mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Fixed PvP core assignment
This commit is contained in:
parent
6226e0c5a3
commit
fd5d0b2cbb
@ -197,7 +197,7 @@ public class NetServer implements ApplicationListener{
|
||||
public Team assignTeam(Iterable<Player> players){
|
||||
//find team with minimum amount of players and auto-assign player to that.
|
||||
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;
|
||||
for(Player other : players){
|
||||
if(other.getTeam() == team){
|
||||
|
Loading…
Reference in New Issue
Block a user