diff --git a/core/src/mindustry/ai/Pathfinder.java b/core/src/mindustry/ai/Pathfinder.java index e9557655c6..0846418815 100644 --- a/core/src/mindustry/ai/Pathfinder.java +++ b/core/src/mindustry/ai/Pathfinder.java @@ -159,7 +159,7 @@ public class Pathfinder implements Runnable{ if(!other.solid()){ boolean otherNearSolid = false; for(int j = 0; j < 4; j++){ - Tile othernear = other.nearby(i); + Tile othernear = other.nearby(j); if(othernear != null && othernear.solid()){ otherNearSolid = true; break;