mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
9a28e97774
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ public class Units{
|
|||
|
||||
/** @return whether a new instance of a unit of this team can be created. */
|
||||
public static boolean canCreate(Team team, UnitType type){
|
||||
return team.data().countType(type) < getCap(team);
|
||||
return team.data().countType(type) < getCap(team) && !type.isBanned();
|
||||
}
|
||||
|
||||
public static int getCap(Team team){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue