Cleanup
This commit is contained in:
@@ -131,7 +131,7 @@ public class Teams{
|
||||
}
|
||||
|
||||
private void count(Unit unit){
|
||||
unit.team.data().updateCount(unit.type(), 1);
|
||||
unit.team.data().updateCount(unit.type, 1);
|
||||
|
||||
if(unit instanceof Payloadc){
|
||||
((Payloadc)unit).payloads().each(p -> {
|
||||
@@ -178,15 +178,15 @@ public class Teams{
|
||||
data.units.add(unit);
|
||||
data.presentFlag = true;
|
||||
|
||||
if(data.unitsByType == null || data.unitsByType.length <= unit.type().id){
|
||||
if(data.unitsByType == null || data.unitsByType.length <= unit.type.id){
|
||||
data.unitsByType = new Seq[content.units().size];
|
||||
}
|
||||
|
||||
if(data.unitsByType[unit.type().id] == null){
|
||||
data.unitsByType[unit.type().id] = new Seq<>();
|
||||
if(data.unitsByType[unit.type.id] == null){
|
||||
data.unitsByType[unit.type.id] = new Seq<>();
|
||||
}
|
||||
|
||||
data.unitsByType[unit.type().id].add(unit);
|
||||
data.unitsByType[unit.type.id].add(unit);
|
||||
|
||||
count(unit);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user