View difference between Paste ID: Y5bvNTn3 and 8hkZKZjk
SHOW: | | - or go back to the newest paste.
1
in your loop somewhere put.
2
​        path = PathFinding.generatePath(Player.getPosition(),Game.getDestination(),false);
3
4
        @Override
5
	public void onPaint(Graphics g) {
6
7
		Graphics2D g2d = (Graphics2D) g;
8-
		if(path != null && path.length > 0){for(RSTile tile : path){
8+
		if(path != null && path.length > 0){
9
10
                    for(RSTile tile : path){
11
12
                           if(tile.isOnScreen()){g2d.draw(Projection.getTileBoundsPoly(tile, 0));}
13
14
                    }
15
16
                 }
17
         }