From d8c39089c67e8ba0b743aecd045613ad36819ff3 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 20 Apr 2024 19:11:02 -0400 Subject: [PATCH] Fixed #9760 --- core/src/mindustry/ai/ControlPathfinder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/ai/ControlPathfinder.java b/core/src/mindustry/ai/ControlPathfinder.java index a63c6115e0..624e87124e 100644 --- a/core/src/mindustry/ai/ControlPathfinder.java +++ b/core/src/mindustry/ai/ControlPathfinder.java @@ -1361,7 +1361,7 @@ public class ControlPathfinder implements Runnable{ private static boolean passable(int team, PathCost cost, int pos){ int amount = cost.getCost(team, pathfinder.tiles[pos]); - return amount < 50; + return amount != impassable && amount < 50; } private static boolean solid(int team, PathCost type, int x, int y){ @@ -1370,7 +1370,7 @@ public class ControlPathfinder implements Runnable{ private static boolean solid(int team, PathCost type, int tilePos, boolean checkWall){ int cost = cost(team, type, tilePos); - return cost >= 50; + return cost == impassable || cost >= 50; } private static int cost(int team, PathCost cost, int tilePos){