From a69595ee4ee6d57563c86554bbe27c060f8f13ff Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 17 Apr 2022 19:33:11 -0400 Subject: [PATCH] Fixed naval pathfinding somehow --- core/src/mindustry/ai/ControlPathfinder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/mindustry/ai/ControlPathfinder.java b/core/src/mindustry/ai/ControlPathfinder.java index 77b9f7dea9..4e6c8485ba 100644 --- a/core/src/mindustry/ai/ControlPathfinder.java +++ b/core/src/mindustry/ai/ControlPathfinder.java @@ -45,8 +45,7 @@ public class ControlPathfinder{ costNaval = (team, tile) -> (PathTile.solid(tile) || !PathTile.liquid(tile) ? impassable : 1) + - (PathTile.nearGround(tile) || PathTile.nearSolid(tile) ? 2 : 0) + - (PathTile.deep(tile) ? 0 : 1); + (PathTile.nearGround(tile) || PathTile.nearSolid(tile) ? 6 : 0); public static boolean showDebug = false;