From cc41b99c750ff311be6dd06c1b6beb0b9f6234fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D1=80=D0=BA=D0=BD=D0=B5=D1=81=D1=81=233729?= <79508138+Darkness6030@users.noreply.github.com> Date: Thu, 29 Jun 2023 16:43:41 +0300 Subject: [PATCH] Update UnitType.java (#8778) --- core/src/mindustry/type/UnitType.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java index 9c13066887..ee2e01a4de 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -684,8 +684,8 @@ public class UnitType extends UnlockableContent{ if(pathCost == null){ pathCost = - example instanceof WaterMovec ? ControlPathfinder.costNaval : - allowLegStep ? ControlPathfinder.costLegs : + naval ? ControlPathfinder.costNaval : + allowLegStep || example instanceof Crawlc ? ControlPathfinder.costLegs : hovering ? ControlPathfinder.costHover : ControlPathfinder.costGround; }