From e57d91a751dca223dfaa67a464a00c3823d0d041 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 30 Apr 2025 13:10:01 -0400 Subject: [PATCH] Fixed #10742 --- 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 e045993885..a639ff4202 100644 --- a/core/src/mindustry/ai/ControlPathfinder.java +++ b/core/src/mindustry/ai/ControlPathfinder.java @@ -1196,7 +1196,7 @@ public class ControlPathfinder implements Runnable{ anyNearSolid = true; } - if((value == 0 || otherCost < value) && otherCost != impassable && ((otherCost != 0 && (current == null || otherCost < minCost)) || packed == actualDestPos || packed == destPos) && passable(unit.team.id, cost, packed)){ + if((value == 0 || otherCost < value) && otherCost != impassable && ((otherCost != 0 && (current == null || otherCost < minCost)) || packed == actualDestPos || packed == destPos) && passable(team, cost, packed)){ current = other; minCost = otherCost; //no need to keep searching. @@ -1246,7 +1246,7 @@ public class ControlPathfinder implements Runnable{ if(showDebug && Core.graphics.getFrameId() % 30 == 0){ Fx.breakBlock.at(request.lastTargetTile.worldx(), request.lastTargetTile.worldy(), 1); } - out.set(request.lastTargetTile); + out.set(request.lastTargetTile.worldx(), request.lastTargetTile.worldy()); request.lastTile = recalc ? -1 : initialTileOn.pos(); return true; }