Great cleanup
This commit is contained in:
@@ -133,10 +133,10 @@ public class Teams{
|
||||
private void count(Unit unit){
|
||||
unit.team.data().updateCount(unit.type, 1);
|
||||
|
||||
if(unit instanceof Payloadc){
|
||||
((Payloadc)unit).payloads().each(p -> {
|
||||
if(p instanceof UnitPayload){
|
||||
count(((UnitPayload)p).unit);
|
||||
if(unit instanceof Payloadc payloadc){
|
||||
payloadc.payloads().each(p -> {
|
||||
if(p instanceof UnitPayload payload){
|
||||
count(payload.unit);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user