Fixed legged units using wrong pathfinder

This commit is contained in:
Anuken
2021-10-18 09:58:01 -04:00
parent 3a9c0377ac
commit c6f6b8e46e

View File

@@ -36,7 +36,7 @@ abstract class LegsComp implements Posc, Rotc, Hitboxc, Flyingc, Unitc{
@Override
@Replace
public int pathType(){
return type.allowLegStep ? Pathfinder.costGround : Pathfinder.costLegs;
return type.allowLegStep ? Pathfinder.costLegs : Pathfinder.costGround;
}
@Override