This commit is contained in:
Anuken
2023-01-07 11:27:15 -05:00
parent 30e36d5640
commit c0b819ec9b

View File

@@ -105,7 +105,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
}
public boolean isPathImpassable(int tileX, int tileY){
return !type.flying && type.pathCost.getCost(team.id, pathfinder.get(tileX, tileY)) == -1;
return !type.flying && world.tiles.in(tileX, tileY) && type.pathCost.getCost(team.id, pathfinder.get(tileX, tileY)) == -1;
}