randomise same-playercount team assignment (#9985)

This commit is contained in:
Ilya246 2024-07-07 15:27:05 +00:00 committed by GitHub
parent 252399a7d8
commit e07a739ae2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,7 @@ public class NetServer implements ApplicationListener{
count++;
}
}
return count;
return (float)count + Mathf.random(-0.1f, 0.1f); //if several have the same playercount pick random
});
return re == null ? null : re.team;
}