mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-25 23:11:47 -07:00
Fixed maps getting rejected even with cores
This commit is contained in:
parent
25bf3be009
commit
2500d0a930
1 changed files with 2 additions and 2 deletions
|
|
@ -237,13 +237,13 @@ public class World implements ApplicationListener{
|
|||
invalidMap = false;
|
||||
|
||||
if(!headless){
|
||||
if(state.teams.get(player.getTeam()).cores.size == 0){
|
||||
if(state.teams.get(defaultTeam).cores.size == 0){
|
||||
ui.showError("$map.nospawn");
|
||||
invalidMap = true;
|
||||
}else if(state.rules.pvp){ //pvp maps need two cores to be valid
|
||||
invalidMap = true;
|
||||
for(Team team : Team.all){
|
||||
if(state.teams.get(team).cores.size != 0 && team != player.getTeam()){
|
||||
if(state.teams.get(team).cores.size != 0 && team != defaultTeam){
|
||||
invalidMap = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue