This commit is contained in:
Anuken
2020-11-29 19:41:10 -05:00
parent ba9bc472e8
commit c41dfa46aa
5 changed files with 10 additions and 8 deletions

View File

@@ -90,8 +90,8 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
public float prefRotation(){
if(activelyBuilding()){
return angleTo(buildPlan());
}else if(mineTile() != null){
return angleTo(mineTile());
}else if(mineTile != null){
return angleTo(mineTile);
}else if(moving()){
return vel().angle();
}