From c6f6b8e46e952c757ebf7e04dc15a167729746bb Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 18 Oct 2021 09:58:01 -0400 Subject: [PATCH] Fixed legged units using wrong pathfinder --- core/src/mindustry/entities/comp/LegsComp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/comp/LegsComp.java b/core/src/mindustry/entities/comp/LegsComp.java index 81073abc1f..f147217c57 100644 --- a/core/src/mindustry/entities/comp/LegsComp.java +++ b/core/src/mindustry/entities/comp/LegsComp.java @@ -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