Bugfixes
This commit is contained in:
@@ -37,7 +37,6 @@ public class AIController implements UnitController{
|
||||
}
|
||||
|
||||
protected void targetClosest(){
|
||||
//TODO optimize!
|
||||
Teamc newTarget = Units.closestTarget(unit.team(), unit.x(), unit.y(), Math.max(unit.range(), unit.type().range), u -> (unit.type().targetAir && u.isFlying()) || (unit.type().targetGround && !u.isFlying()));
|
||||
if(newTarget != null){
|
||||
target = newTarget;
|
||||
|
||||
@@ -2,7 +2,6 @@ package mindustry.entities.units;
|
||||
|
||||
import mindustry.gen.*;
|
||||
|
||||
//TODO rename
|
||||
public interface UnitController{
|
||||
void unit(Unitc unit);
|
||||
Unitc unit();
|
||||
|
||||
Reference in New Issue
Block a user